Edge-inclusion formula for a uniform spanning tree Created 2026-10-05 Updated 2026-10-06
For an edge of conductance in a finite electrical network, its inclusion probability in the conductance-weighted uniform spanning tree is . The same formula holds for the wired limit using the limiting wired effective resistance.
In a finite unweighted connected graph, take distinct graph vertices and orient the unique graph path from to in a uniform spanning tree and assign signed unit current to its edges. Its mean over trees is the electrical unit flow from to . The Kirchhoff node law follows by averaging graph path divergences. For the graph cycle law, let be the two-component spanning forests separating the terminals and the component containing . Deleting a tree-path edge and conversely adjoining an edge across a forest cut are inverse operations. Hence the mean signed current on an edge is
This is the gradient of , proving the graph cycle law. In particular . For an oriented existing edge , that edge is used by the tree graph path exactly when it belongs to the tree, and then has positive orientation. Thus its mean current is , giving the edge-inclusion formula for a uniform spanning tree by Ohm's law.
Orient the unique path from to in a uniform spanning tree , and put when it uses the edge from to , when it uses the reverse direction, and zero otherwise. Then the proposed current is ; set it to zero on nonedges. It is antisymmetric.
For each tree path, every intermediate graph vertex has one incoming and one outgoing path edge, while the source has one outgoing edge and the sink one incoming edge. Hence
Taking expectations gives
the Kirchhoff node law for a unit flow.
To establish the Kirchhoff cycle law, it is not enough to check it separately for each tree path: those path currents need not satisfy the voltage law on the original graph. Instead, let be all spanning trees and let be all spanning forests with two components, one containing and the other . For denote the source component by .
For an existing edge , deleting it from a tree whose - path uses produces precisely a forest with and . Conversely, adding to any such forest produces exactly that tree and path orientation. This is a bijection. Applying it to both orientations gives
Define . Then on every edge. Since the resistances are one, this is Ohm's law, and the voltage drops telescope around every oriented cycle:
Together with the node law, this proves that the mean tree-path current is the electrical unit current. This argument is the mean spanning-tree path current identity.
For clarity, these laws determine the current uniquely. The difference of two solutions is a potential gradient with zero divergence. Multiplying its divergence by and summing over graph vertices gives . Thus every difference current is zero.
Let be the finite set of spanning trees of the connected graph. A spanning tree has all the graph vertices, is connected, and contains no graph cycle. Connectedness ensures that at least one exists, for example by repeatedly deleting an edge of a graph cycle while retaining connectedness. The uniform spanning tree is the random edge set with
Every tree has edges, so uniformity is over complete trees, not over arbitrary subsets of that size. Such subsets can be disconnected or cyclic and do not belong to . Nor are indicators of the tree edges generally independent. The matrix-tree theorem gives as any cofactor of the unweighted Graph Laplacian if a numerical normalizing constant is needed.
This definition uses the ordinary undirected unweighted graph convention. With positive conductances the analogous law for spanning trees weights proportionally to and is generally not uniform. When the graph has one graph vertex the empty edge set is the unique spanning tree, so its probability is one.
For finite , choose a root and an ordering of the other graph vertices. Begin with a tree consisting only of . At each stage take the first graph vertex not already in the tree, run an independent simple random walk from it until its first hit of the existing tree, erase the loops chronologically, and add the resulting graph path. In chronological loop erasure, revisiting a graph vertex already in the current list deletes all list entries after that graph vertex; otherwise append the new graph vertex. The retained final graph path is simple, with new internal graph vertices and exactly one endpoint in the old tree. Adding it therefore preserves connectedness and creates no graph cycle. Graph vertices already included are skipped. On a finite connected graph each walk hits the existing tree almost surely; after finitely many attachments all graph vertices are present.
The Wilson algorithm theorem states that this tree is a uniform spanning tree, independently of the chosen root and order. The required hypotheses here are an undirected connected finite graph and transition probabilities proportional to conductance; unit conductances give simple random walk and the uniform law. This is the sampling result being described, not a claim that arbitrary walk transition probabilities would produce a uniform tree.
For an infinite connected locally finite recurrent graph, choose a fixed finite root and enumerate all graph vertices. A connected locally finite graph is countable, since its finite-radius balls are finite. Run the same algorithm successively. Recurrence and irreducibility imply that a walk from any graph vertex hits almost surely, hence hits the current tree. Every attached graph path is therefore finite. The countable intersection of these probability-one events has probability one, and the increasing union is an acyclic connected subgraph containing all graph vertices: each graph vertex receives a finite route to .
This gives the uniform spanning tree of a recurrent infinite graph. It is not a uniform counting measure on all infinite spanning trees. Equivalently, its joint probability distributions on finite collections of edges are the common limits of uniform spanning trees along any graph exhaustion, using the approximations defining the free uniform spanning forest and the wired uniform spanning forest. To check that equivalence, fix a finite edge set and run the chosen enumeration through a finite prefix containing all its endpoints. Once those graph vertices are in the tree, later attachments cannot add an edge with both endpoints already included, so membership of is settled permanently. Only finitely many random walks have been used; each has a finite trajectory almost surely. All their visited graph vertices and all their graph neighbours lie in a sufficiently large exhaustion set. Couple finite-volume and infinite-volume walks with the same steps there. Whether the exterior is deleted or wired to one boundary graph vertex, these initial trajectories and their loop erasures then agree. This proves convergence of the probabilities of cylinder sets determined by those edges.
The limiting law is unchanged by the root and ordering because the laws on finite graphs have this invariance. The same coupling shows that changing the exhaustion also leaves the law unchanged. Thus
The result is a single spanning tree because the graph is recurrent. On a transient graph, infinite-volume spanning-tree limits may instead be uniform spanning forests; recurrence cannot be omitted from this conclusion.
First take . Sample a uniform spanning tree using Wilson's algorithm rooted at , with processed first. The first walk runs from until its first hit of , so its loop erasure is exactly the unique -to- graph path of the resulting tree. Later attachments cannot alter that graph path. This is the uniform-spanning-tree path representation of loop-erased random walk.
Instead root Wilson's algorithm at and process first. The resulting tree still has the same uniform law, while its first attachment has the law of loop-erased random walk from to . A tree's graph path between two fixed graph vertices has the same unoriented edge set in both directions. Pushing the common tree law through this graph path map therefore gives
Here means the set of unoriented edges. In fact, reversing the complete graph vertex sequence from the first loop-erased walk has the law of the second, giving reversibility of loop-erased random walk. If and first hitting allows time zero, both graph paths are empty and the equality is immediate.
This is a distributional assertion, not a pathwise identity between chronological loop erasure and reversal. For example, the valid walk trajectory in a graph containing the triangle on and the edges erases forward to . Erasing the reversed trajectory and then reversing the result gives , a different graph path. Wilson's root-independent tree law is what proves the stated equality of probability distributions.
Use the usual implicit convention that the infinite connected graph is a locally finite graph. This is needed for the simple random walk and the finite wired constructions to be defined. Choose finite vertex sets exhausting , with each induced subgraph connected.
For the free uniform spanning forest, sample a uniform spanning tree of , using only the internal edges. Its limiting law on edge subsets of is the free uniform spanning forest measure:
The limit is weak convergence of probability measures on , equivalently convergence of every finite-edge event.
For the wired uniform spanning forest, form by identifying every vertex outside to one boundary vertex . Retain all edges with at least one endpoint in , preserve parallel edges, and discard loops at . Sample a uniform spanning tree of this finite multigraph and restrict it to the original internal edges. The limiting law is
For each fixed finite set of edges the restriction is unambiguous once is large. The standard exhaustion theorem guarantees that both limits exist and do not depend on the chosen connected exhaustion. Both are random spanning forests; despite their names, they need not be connected.
Fix a root . On a recurrent graph, a simple random walk started at any vertex hits almost surely. Run Wilson's algorithm with root : successively attach the loop-erased random walk from each new starting vertex, stopped when it hits the existing tree. Every walk terminates almost surely, because that tree already contains .
To compare the two finite approximations, fix a finite set of edges and put all their endpoints first in the ordering of starting vertices. In the infinite graph, these finitely many Wilson's algorithm walks have finite lengths almost surely. Their visited vertices, together with their neighbors, are therefore contained in for all sufficiently large on each realization.
Couple the walks in , in , and in using the same neighbor choices while they are in the interior of . On the event just described, they encounter neither boundary, so the walks, their chronological loop erasures, and the resulting partial trees agree. Once every endpoint of has entered the partial tree, later walks cannot add any edge of : they stop on their first hit of the existing tree. Thus the indicators of membership for all edges of agree in the free and wired uniform spanning trees, with probability tending to one.
The two limiting measures agree on every finite-edge event, and therefore
This argument also shows that the common uniform spanning forest is a single spanning tree on a recurrent graph. The equality refers to probability measures, not to independently sampled forests being identical.
For an infinite locally finite recurrent connected graph, take an increasing exhaustion by finite connected subgraphs and sample a uniform spanning tree in each. The restrictions to any fixed finite edge set converge in distribution; on a recurrent graph the free and wired limits coincide and form one tree. This infinite-volume law is called the uniform spanning tree of the recurrent graph.
It can be generated by Wilson's algorithm. Fix a root and an enumeration of the remaining vertices. Starting with the root, run a random walk from the first vertex not yet in the tree until it hits the existing tree, erase its loops chronologically, and add the resulting path. Recurrence ensures every walk hits the finite tree almost surely. Repeating this operation produces the infinite uniform spanning tree, independently of the enumeration.
Exhaust by finite boxes and let be a uniform spanning tree of . Every finite tree satisfies the handshaking lemma, so
Choose the root uniformly from . The proportion of roots within any fixed distance of the boundary tends to zero, and the rooted trees converge locally to the uniform spanning tree of . Since every degree is at most four, expectations also converge. Translation invariance therefore gives
The four edges incident to have equal inclusion probability by the rotations and reflections of the square lattice. If that common probability is , then . Consequently
for every edge by translation invariance.
Let be the uniform spanning tree measure on the finite connected induced graph . Uniform spanning-tree edge indicators are negatively associated: increasing events depending on disjoint edge sets have nonpositive covariance. Together with the spatial Markov property, this implies the free-boundary monotonicity under graph enlargement: for every increasing cylinder event , is eventually nonincreasing once contains all edges on which depends.
Define the free uniform spanning forest measure by
for increasing cylinder events. These limits determine a unique probability measure, independent of the exhaustion; equivalently, converges weakly to on the product space.
Run Wilson algorithm with root , beginning with a simple random walk from . Its chronological loop erasure is added as the first branch, so the resulting tree contains a path from to with exactly the law of the stated loop-erased random walk.
For completeness, the algorithm produces a uniform spanning tree. For any prescribed ordered collection of loop-erased branches, the random-walk decomposition gives a product of local transition factors and diagonal killed Green functions. The transition factors depend only on the resulting oriented tree, while the product of Green functions is independent of the vertex order by Question 3. Thus every spanning tree receives the same probability. Since a tree has a unique simple path between two vertices, its -to- path has the claimed law.
Sample a uniform spanning tree . Rooting Wilson's algorithm at shows that the path in oriented from to has the law of . Rooting the same uniform law at shows that the same undirected path with its orientation reversed has the law of . Consequently
This is reversibility of loop-erased random walk.
Take an increasing exhaustion of by finite connected vertex sets, identify every vertex outside to one boundary vertex, and choose a uniform spanning tree of the resulting finite wired graph. The weak limit as is the wired uniform spanning forest of .
For Wilson algorithm rooted at infinity, enumerate as . Run a simple random walk from forever and add its chronological loop erasure. Transience makes the infinite loop erasure well-defined. Next, from the first vertex not already in the forest, run an independent random walk until it hits the existing forest; if it never hits, run it forever. Add its loop erasure and continue through the enumeration. Wilson's theorem rooted at infinity says that the resulting forest has the wired uniform spanning forest law.
For , choose independent random variables, each with the uniform distribution on a finite set , and decode their values as a Prüfer sequence. Every sequence has probability , and the bijection gives each labelled tree the same probability. This produces a uniform spanning tree of the complete graph without repeatedly proposing sets of edges and rejecting those that fail to be trees. It supplies random inputs for testing implementations of breadth-first search and a tractable model of random connections. [ref]
This distribution is uniform over fixed-label trees, rather than over unlabelled trees. With four labels, the star graph shape has probability and the path graph shape has probability . Also, for a fixed label , the Prüfer degree formula gives
Here the binomial distribution counts the independent code positions equal to . The expected value agrees with the average vertex degree from the degree-sum formula. Individual labels have the same distribution by symmetry, though their vertex degrees are constrained together by their fixed sum. When , simply return the single isolated vertex.
Uniform spanning forest Created 2026-10-05 Updated 2026-10-06
A uniform spanning forest is an infinite-volume limit of uniform spanning trees on finite graph approximations. Free and wired boundary identifications give the free uniform spanning forest and wired uniform spanning forest, respectively.
If with , the random-cluster model on a finite connected graph converges to the uniform spanning tree. Relative to a tree, an acyclic configuration with components pays a factor , while every additional cycle pays a factor asymptotic to .