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

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

Synopsis

Description

This function lists all vertices of a tree. Each vertex is specified by the partition of the set of leaves formed by removing the vertex. Each partition is given as a List of Sets.

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 of T in the output of vertices have a different representation than in the output of leaves(LeafTree).

See also