directed matrix tree theorem

Tags: #theorem

Statement

Let G=(V,E) be a directed graph with vertices labeled 1,,n. For any root r and k[n], the number of arborescences of G with root r is equal to the cofactor Lkr (L, the Laplacian (Kirchoff) matrix with the kth row and rth column removed).

Proof

We shall proceed via induction on |E|.

Base case: G contains only edges ending at root r. Then, there are no arborescences, and on the other hand, L will only have nonzero entries on the rth column. When we remove it, we'll have the zero matrix and get a determinant of 0.

Inductive case: For any i, pick some edge iej where jr. Construct G1 to be G without the edge e and G2 to be G with all edges fe that end at j deleted. Note that

Arbr(G)=Arbr(G1)+Arbr(G2)

as any arborescence of G must have a path from rj, and so j must have an in-edge. It is either e (then it would be an arborescence of G2) or it isn't (arborescence of G1).

On the other hand, since these graphs are obtained only by augmenting edges that end at j, LG1,LG2 differ from LG only at the jth column. Furthermore, the sum of the jth columns of the smaller graph is that of G. So, LGkr=LG1kr+LG2kr by linearity of the determinant.

To apply the inductive hypothesis, we note that G1 always has less edges than G. We are done if G2 has less edges than G. In the case where there are no other edges to j (ie. indegG(j)=1) we may pick another edge in place of e and j. If all vertices (except r, but any edge that ends at r will not contribute to an arborescence so we may effectively remove them and assume that this holds for all vertices of the graph) has indegree 1. In particular, we may assume that this graph has exactly n1 edges, in which it falls in the following two cases:

  1. If G is an arborescence, then Arbr(G)=1 and by the key lemma from Kirchoff's matrix tree theorem, we may conclude that Lrk=1 as well.
  2. If G is not an arborescence, it has a directed cycle. There are no arborescences, and by a similar argument as in the undirected case, the determinant of the minors will be 0 (because of the cycle).

Example

Suppose we have the following graph:
Pasted image 20260430130201.png|300
If we picked the marked edge e, then our resulting graphs G1 and G2 would be
Pasted image 20260430130250.png|550