package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Dec 26, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
MapNode is a node in the tree data structure
NewNode creates a new tree node
MapTree is a tree data structure
NewTree creates a new tree node
AddTree adds a sub-tree without children
Ancestors returns a slice of all ancestors (i.e. recursive parents),
and an ok bool whether the requested node was found.
The first ancestor is the direct parent, while the last ancestor is the root node.
Descendants returns a slice of all descendants (i.e. recursive children),
and an ok bool whether the requested node was found.
Descendants in the returned slice have undefined order.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.