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.
Fix an edge and orient it from to . For each spanning tree , let be its unique graph path from to . Assign a signed unit graph path flow to oriented edges: value in the direction used by , value on the reversed orientation, and zero otherwise. Define its mean
Each has net divergence one at , minus one at and zero elsewhere, so is a unit flow. The mean spanning-tree path current also satisfies the Kirchhoff cycle law. Although its verification is permitted to be omitted, a short counting argument makes it explicit. Let be the two-component spanning forests separating and , write for the component containing , and let be the number of spanning trees. Deleting an edge used by the oriented tree graph path gives one such forest. Conversely adjoining an edge across its two components gives a unique tree with that edge on its -to- graph path. Consequently
The gradient form proves the Kirchhoff cycle law directly and is Ohm's law for unit edge resistance. The Kirchhoff node law then gives , and the electrical unit flow is unique: the difference between two such voltages is a harmonic function on a graph and hence constant on the connected finite graph.
If , its single-edge route is the unique tree graph path from to , so . If , that tree graph path does not use , so . Therefore
By Ohm's law, ; for a unit terminal current, this voltage difference is exactly the effective resistance between the terminals. We have proved the requested edge-inclusion formula for a uniform spanning tree:
Now use linearity of expectation and the fact that every spanning tree has exactly edges. This gives Foster's theorem:
The sums here use unoriented edges exactly once. For unit conductance this is the displayed identity; with conductances the inclusion probability and summand become .
Two-component spanning forest Created 2026-10-06 Updated 2026-10-25
A two-component spanning forest of a finite connected graph is an acyclic spanning subgraph with exactly two connected components of a graph. It has edges. For distinct terminals , a separating two-component forest places them in different components. Deleting an edge of the -to- graph path of a spanning tree produces such a forest; adjoining any original edge across its cut reverses this operation. This is the counting correspondence behind the mean spanning-tree path current.