Returns a string containing an ascii drawing of the tree
Note, this method calls a private recursive function and is not safe for large trees.
Parameters: | show_internal : bool
compact : bool
|
---|---|
Returns: | str
|
Examples
>>> from six import StringIO
>>> from skbio import TreeNode
>>> tree = TreeNode.read(StringIO("((a,b)c,(d,e)f)root;"))
>>> print(tree.ascii_art())
/-a
/c-------|
| \-b
-root----|
| /-d
\f-------|
\-e