Skip to content

Lindström–Gessel–Viennot Lemma

A determinant identity equating path-matrix minors in a weighted directed acyclic graph with a signed sum of vertex-disjoint path families between chosen sources and destinations.

Version
v2 · 2026-11-14 · History
Domain-specific #
10408
Domain group
Formal Sciences
Origin domain
Mathematics
Subdomains
Enumerative Combinatorics, Algebraic Combinatorics → Mathematics
Aliases
LGV lemma, Lindström lemma, Gessel–Viennot lemma

Core Idea

LGV builds a matrix whose entries are complete weighted path sums between ordered sources and destinations. Its determinant expands into signed tuples of paths, one tuple for each endpoint permutation.

Intersecting tuples cancel in weight-preserving, sign-reversing pairs obtained by exchanging path tails at an intersection. What survives is the signed enumeration of vertex-disjoint families; special endpoint orderings can make that determinant a direct positive count.

How would you explain it like I'm…

No-Bumping Ant Paths

Imagine a few ants each walking from their own start to their own finish on a grid. You want to count the ways they can all walk without ever stepping on the same spot. A clever trick counts every way, and the ways where paths bump into each other cancel out in pairs. What's left counts the ways nobody bumps.

Crossing Paths Cancel Out

The Lindström–Gessel–Viennot Lemma is a counting trick for several paths going from starting points to ending points. You build a grid of numbers where each entry counts the paths from one start to one end. Then you compute a special combination called the determinant, which adds some arrangements and subtracts others. Whenever two paths cross, you can swap their endings at the crossing, and those two arrangements cancel each other. What survives counts path families that never touch, and in nice setups it's a plain positive count.

Determinants Count Disjoint Paths

The Lindström–Gessel–Viennot Lemma starts with a list of starting points and a list of ending points in a network. You make a matrix where entry (i, j) is the total (weighted) number of paths from start i to end j. Expanding the determinant gives a signed sum over all ways to choose one path per start, sending the starts to the ends in some order (a permutation). Whenever two paths in a family intersect, you can swap their tails at the first meeting point; this gives another family with the same weight but opposite sign, so the two cancel. What remains is a signed count of families whose paths never share a vertex. If the endpoints are arranged so non-crossing families can only connect starts to ends in the natural order, the determinant is simply the positive count of such families.

 

The Lindström–Gessel–Viennot Lemma evaluates a determinant combinatorially. Given ordered sources a_1,…,a_k and destinations b_1,…,b_k in a weighted graph, form the matrix M with M_ij equal to the total weighted path sum from a_i to b_j. Expanding det M gives a sum over permutations σ of sign(σ) times the weight of all path tuples sending a_i to b_σ(i). For any tuple with an intersection, a canonical choice of intersection and exchange of path tails defines a weight-preserving, sign-reversing involution, so intersecting tuples cancel in pairs. The determinant therefore equals the signed enumeration of vertex-disjoint path families. Under special endpoint orderings where only the identity permutation admits disjoint families, det M is a direct positive count of non-intersecting paths.

Structural Signature

Sig role-phrases:

  • Directed acyclic graph — Provides finite path sums and an order for cancellation. It is combinatorial domain. Counterfactual: Cycles can make unrestricted path sums nonfinite or require formal extensions.
  • Source tuple — Indexes matrix rows and path starts. It is boundary data. Counterfactual: Unordered sources obscure permutation signs.
  • Destination tuple — Indexes matrix columns and path ends. It is boundary data. Counterfactual: Mismatched endpoints change the determinant.
  • Edge weights — Multiply along paths and add across alternatives. It is algebraic weight. Counterfactual: Noncommutative weights invalidate the ordinary determinant argument.
  • Path matrix — Collects all source-to-destination path sums. It is algebraic bridge. Counterfactual: A generic adjacency matrix is not the required matrix.
  • Sign-reversing involution — Cancels intersecting path families. It is proof mechanism. Counterfactual: Without cancellation the determinant includes unwanted intersections.

What It Is Not

  • The relevant matrix is not merely the adjacency matrix.
  • Nonintersecting ordinarily means vertex-disjoint, including endpoints as specified.
  • A determinant may be signed rather than an unsigned count.
  • Directed cycles require care because path sums may not be finite.
  • Closest near-miss. The matrix-tree theorem also uses determinants to count graph structures, but it enumerates spanning trees through Laplacian minors rather than disjoint source–destination paths.

Scope of Application

  • Lattice-path enumeration. Counts nonintersecting path ensembles.
  • Determinantal identities. Proves formulas for minors and symmetric functions.
  • Plane partitions and tableaux. Builds bijective enumerations through path encodings.
  • Total positivity. Interprets matrix minors using positive path weights.

Clarity

State graph, acyclicity or convergence assumptions, coefficient ring, edge weights, source and sink order, path intersection convention, and endpoint permutations. Explain why any desired family has positive sign and why unwanted families cancel.

Manages Complexity

The lemma compresses exponentially many path tuples into one determinant by exploiting an involution rather than enumerating them directly. Its elegance depends on precise synchronization of graph topology, algebraic weights, endpoint ordering, and the chosen nonintersection notion.

Abstract Reasoning

  1. Choose a directed graph, source order, destination order, and commutative weights.
  2. Verify finiteness of relevant path sums, commonly through acyclicity.
  3. Form the matrix of total path weights.
  4. Identify vertex-disjoint families and their endpoint permutations.
  5. Apply the sign-reversing involution and justify any conversion from signed to unsigned count.

Knowledge Transfer

The determinant–path method transfers when objects can be encoded as vertex-disjoint paths with well-defined multiplicative weights. Edge-disjointness, cycles, noncommutative weights, or unmatched endpoint order require a modified theorem rather than casual reuse.

Examples

Canonical

In a finite directed acyclic lattice, matrix entries count weighted paths from each start to each end; the determinant cancels intersecting pairs and leaves signed nonintersecting path systems.

Mapped back: graph → weighted DAG; matrix → path sums; families → vertex-disjoint; result → signed determinant.

Applied / In Practice

Taking the determinant of the graph's adjacency matrix does not count the required path families because its entries encode one-step edges rather than all source-to-destination paths.

Mapped back: matrix → adjacency; path sums → absent; verdict → wrong matrix.

Structural Tensions

T1 — Signed Identity versus Positive Enumeration. Determinants naturally attach permutation signs, while counting applications often want nonnegative totals.

Diagnostic: What ordering eliminates or controls nonidentity pairings?

T2 — General Weights versus Finite Path Sums. Algebraic flexibility depends on acyclicity or another convergence/formal-series framework.

Diagnostic: Why is every matrix entry well-defined?

Structural–Framed Character

Lindström–Gessel–Viennot Lemma is structural as determinant expansion plus cancellation of intersecting path families and framed by algebraic combinatorics. The path matrix is the bridge between graph enumeration and linear algebra.

Structural Core vs. Domain Accent

The general core is signed cancellation through an involution. Combinatorics supplies paths, sources, sinks, vertex intersections, and multiplicative weights; determinant theory supplies permutations and signs.

This entry presupposes Directed Acyclic Graph.

  • Approved unparented root. No reviewed parent entails this determinant identity for disjoint paths.

  • Related — matrix-tree and disjoint-path theorems. They also connect graphs to algebra but count different objects or answer existence rather than weighted enumeration.

Relationships to Other Abstractions

Local relationship map for Lindström–Gessel–Viennot LemmaParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Lindström–Gessel–Vie…DOMAINPrime abstraction: Directed Acyclic Graph — presupposesDirectedAcyclic GraphPRIME

Current abstraction Lindström–Gessel–Viennot Lemma Domain-specific

Parents (1) — outgoing typed relations

  • Lindström–Gessel–Viennot Lemma presupposes Directed Acyclic Graph Prime

    Lindström–Gessel–Viennot Lemma presupposes Directed Acyclic Graph because its weighted path matrix and vertex-disjoint families are defined on a directed acyclic graph.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Lindström–Gessel–Viennot Lemma sits in a moderately populated region (50th percentile for distinctiveness): it has near-neighbors but no dense thicket of look-alikes.

Family — Graph Structures & Algorithms (24 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

Not to Be Confused With

  • Matrix-tree theorem. Tell: Counts spanning trees from Laplacian determinants.
  • Menger's theorem. Tell: Relates disjoint paths to separators rather than weighted enumeration.
  • Adjacency-matrix powers. Tell: Count fixed-length walks, including intersections.
  • Karlin–McGregor formula. Tell: Is a related determinant for noncolliding stochastic paths under additional structure.

References

  • Frozen Wikipedia discovery revision: https://en.wikipedia.org/wiki/Lindstr%C3%B6m%E2%80%93Gessel%E2%80%93Viennot_lemma (revision 1362849243).