Furthermore, the rank of (the Laplacian (Kirchoff) matrix) is where is the number of vertices and is the number of connected components.
Another formulation: if the eigenvalues of is with , then the number of spanning trees of is equal to
Proof
Direct the edges of arbitrarily. First, we collect some lemmas:
Lemma: for any fixed orientation of the edges. (where is the oriented incidence matrix)
The entry of is the dot product of the th and th rows of .
If , this gives us the number of edges that are incident to .
If , this gives us the negation of the number of edges connecting and .
We note that this is exactly the entry of .
Lemma: where is with the th row and column removed.
Follows from the above.
Key Lemma: if is the set of edges of a spanning tree. 0 otherwise.
Suppose does not form a spanning tree. Since it has edges, it has to have a cycle. Then, the sum of all the corresponding columns of the cycle in will be 0, which yields a linear dependence. Thus, the determinant is 0.
Suppose forms a spanning tree. As long as the tree has at least 2 vertices, it will have at least 2 leaves. These leaves correspond to a row in that only has 1 nonzero entry. We note then that where is without the leaf, still a tree. We may continue doing this until there are no more edges left, and we see that the determinant will always be .
It turns out in general that the oriented incidence matrix of a graph is totally unimodal
With this lemma, we conclude the theorem.
The equivalent statement that it is the product of the eigenvalues comes from looking at the two ways to find the linear term of the characteristic polynomial of
The characteristic polynomial will look like and so the coefficient of the linear term will be
Note that the coefficient of in is also the sum of the minors, ie. which gives us times the number of spanning trees