TheoremComplete

Matrix-Tree Theorem

The matrix-tree theorem (Kirchhoff's theorem) provides a beautiful connection between graph theory and linear algebra, expressing the number of spanning trees as a determinant of the Laplacian matrix.

TheoremMatrix-Tree Theorem

Let G=(V,E)G = (V,E) be a graph with Laplacian matrix LL. For any iVi \in V, let LiL_i denote the matrix obtained by deleting row ii and column ii from LL. Then: τ(G)=det(Li)\tau(G) = \det(L_i)

where τ(G)\tau(G) is the number of spanning trees of GG. Remarkably, this value is independent of the choice of ii.

The proof uses the Cauchy-Binet formula and properties of the incidence matrix, revealing deep structure in the Laplacian.

ProofProof Sketch

Let BB be the incidence matrix: rows index vertices, columns index edges, with Bve=1B_{ve} = 1 if vv is incident to ee, and 0 otherwise.

The Laplacian can be written as L=BBTL = BB^T. For any vertex ii, let BiB_i denote BB with row ii deleted. Then: Li=BiBiTL_i = B_i B_i^T

By the Cauchy-Binet formula: det(Li)=Tdet(Bi(T))2\det(L_i) = \sum_{T} \det(B_i^{(T)})^2

where the sum is over all (n1)×(n1)(n-1) \times (n-1) submatrices Bi(T)B_i^{(T)} formed by selecting n1n-1 columns. The determinant det(Bi(T))\det(B_i^{(T)}) equals ±1\pm 1 if the selected edges form a spanning tree, and 0 otherwise. Thus the sum counts spanning trees.

ExampleCycle Graph $C_4$

For the 4-cycle, the Laplacian is: L=(2101121001211012)L = \begin{pmatrix} 2 & -1 & 0 & -1 \\ -1 & 2 & -1 & 0 \\ 0 & -1 & 2 & -1 \\ -1 & 0 & -1 & 2 \end{pmatrix}

Deleting the first row and column: L1=(210121012)L_1 = \begin{pmatrix} 2 & -1 & 0 \\ -1 & 2 & -1 \\ 0 & -1 & 2 \end{pmatrix}

Computing: det(L1)=2(41)(1)(2)=62=4\det(L_1) = 2(4-1) - (-1)(-2) = 6 - 2 = 4.

Indeed, C4C_4 has exactly 4 spanning trees (removing any one of the 4 edges yields a tree).

Remark

The matrix-tree theorem extends to weighted graphs: replace 1-1 with wij-w_{ij} in the Laplacian. Then det(Li)\det(L_i) equals the sum of weights of all spanning trees, where a tree's weight is the product of its edge weights. This provides a generating function for weighted enumeration.

TheoremAll-Minors Matrix-Tree Theorem

The (i,j)(i,j)-cofactor of LL (determinant of LL with row ii and column jj deleted, times (1)i+j(-1)^{i+j}) counts spanning forests with exactly two components, where ii and jj are in different components.

The matrix-tree theorem connects to electrical networks (Kirchhoff's laws), random walks (commute times), and algebraic graph theory (spectral properties), demonstrating the unity of mathematics across seemingly disparate domains.