A labelled unicyclic component has a unique cycle of length , with a rooted forest attached to its vertices. Choose its vertices in ways and its unoriented cycle in ways. The labelled forest count with prescribed roots gives attachments. Summing over and putting yields the displayed identity.
We first establish the labelled forest count with prescribed roots. For a prescribed root set of size , orient each tree toward its unique root. Repeatedly delete the smallest remaining nonroot leaf, recording its parent. There are deletions, and the final recorded parent belongs to . Conversely, start with any code of length whose last entry lies in . At each step select the smallest remaining nonroot absent from the remaining code, connect it to the code's first entry, and delete that vertex and entry. Such a vertex exists: among remaining nonroots, the remaining code has entries but at least its last entry is a root, so at most nonroots occur in it. Previously deleted vertices never recur in the code, so the selected parent is still present. Every edge goes from a vertex being deleted to one retained, excluding a cycle. The resulting forest has one root in each graph component, and the two constructions are inverse. Its count is therefore
for , interpret this as one, the empty forest.
A connected simple graph with edges has exactly one cycle: a spanning tree uses edges, and the remaining edge creates its unique cycle. If that graph cycle has length , choose its vertex set in ways and its unoriented cyclic order in ways. All other edges form a forest rooted at those vertices, with exactly one cycle vertex per forest component; two roots in one attached component would create an additional cycle. Conversely every such cycle and rooted forest gives a unique unicyclic component. Thus
This is the labelled unicyclic graph count. The term correctly counts a cycle with no attached nonroot vertices.
A connected graph on vertices containing at least two cycles has a spanning tree together with at least two further edges. By Cayley formula, the number of labelled spanning trees on a fixed -set is . Hence the first moment method and a union bound show that the probability of such a component of order is at most
where and is absolute. Requiring that the chosen set be a component would only add absent-edge conditions, so omitting them is a valid upper bound.
Therefore
Thus every component in the stated range is either a tree or a unicyclic component with high probability.
Pseudoforest 2026-10-14
A pseudoforest is an undirected graph in which every connected component of a graph contains at most one cycle in a graph. Thus each component is a tree or a unicyclic component. A finite tree component has one fewer edge than vertices; a finite unicyclic component has equally many edges and vertices.