Linstrom-Gessel-Viennot theorem

Tags: #theorem

Statement

Let G=(V,E) be an acyclic, planar directed graph with edge weights xe for all e∈E.
Select vertices A1,…,An and B1,…,Bn.

Let C=(cij)1≤i,j≤n be the n×n matrix such that

cij=∑p:Ai→Bjwt(p)

where p ranges over all paths Ai→Bj.

The number of noncrossing n-tuples of paths counted with weights (P1,…,Pn) such that Pi connects Ai to Bi, ∑(p1,…,pn)wt(pi) is equal to the determinant of the matrix C=(cij).

Proof

We know that

detC=∑w1,…,wn∈Sn(−1)sign(w)c1w1c2w2…cnwn=∑w∈Sn∑(p1,…,pn),pi:Ai→Bwi(−1)sign(w)∏iwt(Pi)

we would like to show that the tuples of paths that cross cancel each other out. This can be done by exhibiting a sign-changing involution on these paths.

Given a tuple of path (p1,…,pn) that have a crossing,

Example

Pasted image 20260506123747.png