Modules§
Functions§
- child_
with_ direction - common_
ancestor - copath
- direct_
path - left
- level
- Returns the height of that node in the tree
- node_
width - Number of nodes needed to represent a tree with [leaf_count] leaves.
- parent
- Get the parent of a node, return None if the node is the root
- right
- root
- Returns the root node
- sibling
- Given a node, return the left/right child of his parent, return None when root