Performs iteration over tree, visiting node before and after
Parameters: | include_self : bool
|
---|---|
Returns: | GeneratorType
|
Examples
>>> from skbio.core.tree import TreeNode
>>> tree = TreeNode.from_newick("((a,b)c);")
>>> for node in tree.pre_and_postorder():
... print node.name
None
c
a
b
c
None