treelayout lays out a tree or a forest.
The first argument tree is a vector of predecessors.
The parameter permutation is an optional postorder permutation.
The complexity of the algorithm is O(n) in terms of time and memory requirements.
See also: etreeplot, gplot, treeplot.
Package: octave