Returns an Nx1 vector BO attributing a branch order value to each node of tree intree. The branch order starts at 0 at the root of the tree and increases after every branch point.

TREES

Examples:

>> BO = BO_tree (sample2_tree)'

[0, 0, 0, 1, 1, 1, 2, 2, 2, 1, 2, 2, 3, 3, 2]

>> max (BO)   → Maximum branch order

3

TREES

>> BO2 = BO_tree (sample_tree)';

>> hist (BO2);

plot a histogram of branch orders for all nodes:

TREES

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License