Linstrom-Gessel-Viennot theorem

Tags: #theorem

Statement

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

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

cij=p:AiBjwt(p)

where p ranges over all paths AiBj.

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,,wnSn(1)sign(w)c1w1c2w2cnwn=wSn(p1,,pn),pi:AiBwi(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