Macaulay2 » Documentation
Packages » PhylogeneticTrees :: edges(LeafTree)
next | previous | forward | backward | up | index | toc

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

Ways to use this method: