Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CyclicError ¶
type CyclicError struct { What string // contains filtered or unexported fields }
CyclicError is the type that is returned if a cyclic edge would be inserted
type Graph ¶
func NewGraphOf ¶
func (*Graph) AddEdge ¶
AddEdge adds a new edge from a node to a node and returns an error if it would result in a cyclic graph
func (*Graph) GetNextLeaf ¶
GetNextLeaf returns the next leaf in the graph from node start
func (*Graph) InsertNodeAt ¶
InsertNodeAt inserts a new node at the given parent position
func (*Graph) RemoveNode ¶
RemoveNode removes a node with no children in the graph
Click to show internal directories.
Click to hide internal directories.