An object of class LeafTree is specified by listing its leaves, and for each internal edge, the partition the edge induces on the set of leaves. L is the set of leaves, or if an integer n is input then the leaves will be named $0,\ldots,n1$. E is a list with one entry for each internal edge. Each entry is a partition specified as a list or set of the leaves in one side of the partition. Thus each edge can be specified in two possible ways.
An object of class LeafTree can also be constructed from a Graph provided the graph has no cycles.
Here we construct the quartet tree, which is the tree with 4 leaves and one internal edge.



Here is a tree with 5 leaves given as a Graph.




The object leafTree is a method function.