Closed jordibc closed 2 years ago
Add a function to the class TreeNode that returns the tree as a compact text.
It is similar to get_ascii(), but with a more compact representation that allows to see bigger trees on the console.
get_ascii()
Example:
t = Tree(...) print(t.to_str(['name', 'dist', 'support']))
Add a function to the class TreeNode that returns the tree as a compact text.
It is similar to
get_ascii()
, but with a more compact representation that allows to see bigger trees on the console.Example: