Tree
Constructors
Properties
Functions
Append a node to a path from root
Append empty named nodes to the node at the cursor
Append nodes to the node at the cursor
Check if able to move the cursor up, up to n times.
Move your current position to parent node, if no parent exists, remain at the same place
Move the cursor up n times, stop when the
Set cursor relatively from current position. Remain at the same place if the path does not exist.
Update your current position to a route from root, if no such path, remain at the same place
Get all leaves (nodes that have no children) from this tree
Get all nodes in the tree. The nodes in the list are sorted deep to shallow and right to left
Get TreeNode at the certain path from root.
Check if this path from root is valid.
Prints out all leaves, each shifted by 20 * depth
Made for convenience and chaining. Direct tree.root.attributes = someList()
is still possible.
Made for convenience and chaining. Direct tree.root.name = "someName"
is still possible.
Get a visualization of the whole tree.