Class Tree.IterationOrder
java.lang.Object
fc.util.Tree.IterationOrder
- Enclosing class:
Tree
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Tree.IterationOrderA breadth first iteration of the tree, starting from the specified startnode.static final Tree.IterationOrderA depth first, left to right, in order iteration starting from the specified startnode.static final Tree.IterationOrderA depth first, left to right, post order iteration starting from the specified startnodestatic final Tree.IterationOrderA depth first, left to right, pre order iteration starting from the specified startnode. -
Method Summary
-
Field Details
-
BreadthFirst
A breadth first iteration of the tree, starting from the specified startnode. -
PreOrder
A depth first, left to right, pre order iteration starting from the specified startnode. -
InOrder
A depth first, left to right, in order iteration starting from the specified startnode. In order iteration only makes sense when each node has a maximum of 2 child nodes (since the parent node is visited between the left and right children). Therefore this iteration will throw a runtime exception if more than 2 children are encountered for any node. -
PostOrder
A depth first, left to right, post order iteration starting from the specified startnode
-
-
Method Details
-
iterator
-