telepath / com.github.giedomak.telepath.datamodels.plans / AbstractMultiTree / postOrderTraversal

postOrderTraversal

fun postOrderTraversal(): Sequence<ImplementingTree> (source)

Post-order traversal.

We expect the following tree to report 2, 5, 6, 3, 4, 1.

       1
     / | \
    2  3  4
      / \
     5   6

Return
Sequence of ImplementingTree in post-order sequence.