Documentation

CslibFrontier.Algorithms.Lean.GomoryHu.Real

Gomory–Hu trees of weighted undirected graphs with real capacities #

This module specializes the abstract Gomory-Hu theory to graphs with capacities in a linearly ordered field, proving cut-equivalence and flow-equivalence.

Main results #

The minimum s–t cuts of the cut function are the sets containing s and missing t whose weight is λ(s, t).

theorem Cslib.Algorithms.Lean.GomoryHu.exists_isGomoryHuTree_cutWeight_of_symm {V : Type u_1} [Fintype V] [DecidableEq V] {K : Type u_2} [Field K] [LinearOrder K] [IsStrictOrderedRing K] [Nonempty V] {W : V → V → K} (hWs : ∀ (u v : V), W u v = W v u) (hWn : ∀ (u v : V), 0 ≤ W u v) :

Gomory–Hu theorem ([GH61]; [Sch03], Section 15.4): every weighted multigraph W on a nonempty finite vertex set has a cut-equivalent tree, a spanning tree T on the vertices in which for every edge uv, the side of T - uv containing u is a minimum u–v cut of W. The edges of T need not be edges of W.

theorem Cslib.Algorithms.Lean.GomoryHu.IsGomoryHuTree.isLeast_minRealCutBetween {V : Type u_1} [Fintype V] [DecidableEq V] {K : Type u_2} [Field K] [LinearOrder K] {W : V → V → K} {T : SimpleGraph V} (hT : IsGomoryHuTree (WeightedCut.cutWeight W) T) {s t : V} (hst : s ≠ t) {p : T.Walk s t} (hp : p.IsPath) :

Flow-equivalence of a Gomory–Hu tree ([GH61]): with each tree edge uv weighted by λ(u, v), the minimum s–t cut weight λ(s, t) is the least weight of an edge on the s–t path of the tree.

theorem Cslib.Algorithms.Lean.GomoryHu.card_image_minRealCutBetween_le {V : Type u_1} [Fintype V] [DecidableEq V] {K : Type u_2} [Field K] [LinearOrder K] [IsStrictOrderedRing K] {W : V → V → K} (hWs : ∀ (u v : V), W u v = W v u) (hWn : ∀ (u v : V), 0 ≤ W u v) :

An undirected weighted graph on n vertices has at most n - 1 distinct minimum cut values λ(s, t) over pairs of distinct vertices ([GH61]).