This function enumerates all possible homeomorphically-reduced trees (no degree-2 vertices) with a distinguished root and n-1 unlabeled leaves. Each tree is an object of class LeafTree. For the purposes of representation, the root is named 0 and the unlabeled leaves are named $1,\ldots,n-1$. In other words each class of unlabeled rooted tree is represented once by a particular labeling of that tree.
i1 : L = rootedTrees 4 o1 = {{{0, 1, 2, 3}, {set {1, 2}, set {0}, set {1}, set {2}, set {3}}}, {{0, ------------------------------------------------------------------------ 1, 2, 3}, {set {0}, set {1}, set {2}, set {3}}}} o1 : List |
The object rootedTrees is a method function.