bartz.grove.format_tree

bartz.grove.format_tree(tree, *, print_all=False)[source]

Convert a tree to a human-readable string.

Parameters:
  • tree (TreeHeaps) – A single tree to format.

  • print_all (bool, default: False) – If True, also print the contents of unused node slots in the arrays.

Returns:

strA string representation of the tree.