Encode a labelled tree by repeatedly deleting its smallest-labelled leaf of a graph and recording its neighbor, stopping when two vertices remain. This produces a sequence of length with entries in .
Conversely, given such a sequence, at each step choose the smallest unused label not occurring in the remaining sequence, join it to the first sequence entry, delete that chosen label and the first entry, and continue. Finally join the two labels left over. A label outside the remaining sequence always exists because two more labels than entries remain. The process never uses a previously deleted label as a sequence entry. Each step attaches a new leaf of a graph to the eventual remaining graph, so backward induction shows that the result is connected and acyclic, hence a tree.
In a tree encoding, a vertex occurs once for every incident edge except the edge by which it is eventually removed, or the final surviving edge. Thus its number of occurrences is its degree minus one. The labels absent from the current remaining sequence are exactly the current leaves of a graph. Both procedures therefore choose the same smallest leaf of a graph and edge at every stage. They are inverse maps, proving the claimed bijection, including the empty sequence when .
There are ten labels. The successive deleted leaves of a graph are , paired with the respective entries . The final two labels are . Thus the tree has edge set
Here denotes the unordered edge ; the last edge is written with a separator to distinguish label ten. Equivalently its adjacency lists are , , , with all other vertices leaves of a graph. These lists make the constructed tree unambiguous.
A label appears in the code exactly its degree minus one times, as proved in (i). It is a leaf of a graph exactly when it never appears. Therefore
For example the code in (ii) uses three distinct labels, so its ten-vertex tree has seven leaves of a graph.
For there are no edges. Every finite tree with at least two vertices has a leaf of a graph: an endpoint of a longest simple path cannot have another neighbor, since that would either create a cycle or extend the path. Delete that leaf of a graph and its sole edge. The remaining graph is still a tree, so induction gives remaining edges and original edges. Alternatively the decoding construction in (i) inserts exactly edges and then the final edge.
The sum of degrees is twice the number of edges, so
For this gives
Necessity of the divisibility condition follows. Conversely, when , choose internal labels and form a Prüfer sequence in which each of them appears exactly times. Its length is ; all other labels are absent. The decoded tree has degree at the chosen labels and degree one elsewhere. Thus the divisibility condition is sufficient, with the displayed leaf of a graph count. For the code is empty and the sole edge works, with no internal vertices.
The division assumes . If , all vertices would have degree one, and the only connected tree with is the two-vertex edge. This separate case is not expressed by division by .
First choose the absent labels, which will be the leaves of a graph, in ways. Every other label must occur exactly times in the Prüfer sequence. There are such labels and their total multiplicity is by (a). The number of orderings of this multiset is . The bijection in (i) turns each ordering into one distinct labelled tree and exhausts all possibilities. Therefore
The formula is used with the feasible integer parameters from (a), and gives one for the two-vertex edge with no internal labels.

Articles by others on the same topic (0)

There are currently no matching articles.