bartz.grove.format_tree¶
- bartz.grove.format_tree(tree, *, print_all=False)[source]¶
Convert a tree to a human-readable string.
- Parameters:
- Returns:
str– A string representation of the tree.
Notes
Each line starts with the index of the node in the heap, followed by the index of its value in
TreeHeaps.leaf_tree, seenode_to_leaf_index.