Enum tskit::NodeTraversalOrder
source · pub enum NodeTraversalOrder {
Preorder,
Postorder,
}
Expand description
Specify the traversal order used by
TreeInterface::traverse_nodes
.
Variants§
Preorder
Preorder traversal, starting at the root(s) of a TreeInterface
.
For trees with multiple roots, start at the left root,
traverse to tips, proceeed to the next root, etc..
Postorder
Postorder traversal, starting at the root(s) of a TreeInterface
.
For trees with multiple roots, start at the left root,
traverse to tips, proceeed to the next root, etc..