Darwin Help

Back to Index

FindCircularOrder

Function FindCircularOrder - list of Leaf labels in lexicographical order

Calling Sequence  FindCircularOrder(t)
Parameters
NameTypeDescription

t Treeinput tree
Return Type  list
Synopsis Find a circular order of a tree, in particular, a lexicographical order of a Tree.
Examples
> tree := Tree(Tree(Tree(Leaf(f9,-90.4683,372),-89.6651,
Leaf(e8,-91.6422,371)),-87.7817, Leaf(e7,-89.9699,370)),-63.2655,
Tree(Tree(Leaf(e6,-84.4243,369),-81.6475,Leaf(e5,-83.9666,368)),
-78.2662,Leaf(e4,-84.5572,367))):

> FindCircularOrder(tree);
[f9, e8, e7, e6, e5, e4, f9]


See also CircularTour,   Clusters,   Leaf,   Leaves,   Tree