next | previous | forward | backward | up | top | index | toc | Macaulay2 website
PhylogeneticTrees :: edges(LeafTree)

edges(LeafTree) -- list the edges of a tree

Synopsis

Description

This function lists all edges of a tree. Each entry of the list is a Set of the leaves on one side of the edge.

i1 : T = leafTree(5,{{0,1}});
i2 : leaves T

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

o2 : Set
i3 : edges T

o3 = {set {0, 1}, set {0}, set {1}, set {2}, set {3}, set {4}}

o3 : List

See also