Documentation
¶
Overview ¶
Package node provides the abstraction to build and use BadWolf nodes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node describes a node in a BadWolf graph.
func NewBlankNode ¶
func NewBlankNode() *Node
NewBlankNode creates a new blank node. The blank node ID is guaranteed to be unique in BadWolf.
func NewNode ¶
NewNode returns a new node constructed from a type and an ID.
func NewNodeFromStrings ¶
NewNodeFromStrings returns a new node constructed from a type and ID represented as plain strings.
func Parse ¶
Parse returns a node given a pretty printed representation of a Node or a BlankNode.
func (*Node) Covariant ¶
Covariant checks if the types of two nodes is covariant.
func (*Node) String ¶
String returns a pretty printing representation of Node.
Source Files
¶
- node.go
Click to show internal directories.
Click to hide internal directories.