Lay out tree or forest
[x,y] = treelayout(parent,post)
[x,y,h,s] = treelayout(parent,post)
[x,y] = treelayout(parent,post) lays out a tree or a
parent is the vector of parent pointers, with
0 for a root.
post is an optional postorder
permutation on the tree nodes. If you omit
treelayout computes it.
y are vectors of coordinates in the unit square at which to lay
out the nodes of the tree to make a nice picture.
[x,y,h,s] = treelayout(parent,post) also
returns the height of the tree
h and the number
s in the top-level separator.
Run code in the background using MATLAB®
backgroundPool or accelerate code with Parallel Computing Toolbox™
This function fully supports thread-based environments. For more information, see Run MATLAB Functions in Thread-Based Environment.
Introduced before R2006a