Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
Node is the data structure which the tree is consists of
func (*Node) ForEachDFS ¶
ForEachDFS runs callback for each node using depth-first-search
func (*Node) HasChildren ¶
HasChildren returns true if node has any child nodes
type Tree ¶
type Tree struct {
Root *Node
}
Tree represent a tree structure and holds a reference to the root
func (*Tree) ForEachBSF ¶
ForEachBSF iterates over this tree using breadth first search and calls callback for each node
Click to show internal directories.
Click to hide internal directories.