next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
PhylogeneticTrees :: leaves(LeafTree)

leaves(LeafTree) -- List the leaves of a tree

Synopsis

Description

Outputs the leaves of the tree as a Set.

i1 : T = leafTree(4,{{0,1}});
i2 : vertices T

o2 = {{set {0, 1}, set {3}, set {2}}, {set {0, 1, 2}}, {set {0, 1, 3}}, {set
     ------------------------------------------------------------------------
     {0}, set {1}, set {2, 3}}, {set {0, 2, 3}}, {set {1, 2, 3}}}

o2 : List
i3 : #(vertices T)

o3 = 6

Caveat

The leaves have a different representation than in the output of vertices(LeafTree).

See also