Max flow/min cut theorem [00SN]
- November 12, 2026
We now present one of the great duality results in computer science—that the maximum flow of a network is equivalent to the minimum cut of a network. Along the way, we will also show that f is a max flow if and only there are no augmenting paths in the residual network G_{f}, which proves the correctness of Ford-Fulkerson.
Definition s-t cut [00SO]
- November 16, 2026
An s-t cut in a flow network G = (V,E) is a partition of V into two sets (A,B) where s \in A and t \in B.
Definition Cut capacity [00SP]
- November 16, 2026
The capacity of an s-t cut, denoted c(A,B), is the total capacity of all edges crossing the cut. That is, c(A,B) = \sum _{e : A \to B} c(e). (The notation e : A \to B denotes any edge which goes from some vertex in A to some vertex in B.)
Definition Minimum cut [00SQ]
- November 16, 2026
Definition Net flow [00SR]
- November 16, 2026
Remark [00SS]
- November 16, 2026
If we imagine the vertices of A being “clumped together” around the source vertex, then it’s clear what should happen: there will be no flow coming in to A, and the flow going out will just be equal to the value of the flow. But A could be crazier—it could consist of a bunch of vertices scattered all through the graph. They don’t even have to be connected. So what can we say about the net flow in general?
Lemma Flow Value Lemma [00ST]
- November 16, 2026
Let f be any flow and let (A,B) be any s-t cut in a flow network G. Then the net flow of (A,B) with respect to f equals the value of f. That is, v(A,B) = v(f).
Proof.
- November 16, 2026
The remaining step that needs explanation is the central one that goes from \sum _{v \in A} (f^{\mathrm {out}}(v) - f^{\mathrm {in}}(v)) to \sum _{e : A \to B} f(e) - \sum _{e : B \to A} f(e). To see why this is true, consider all the edges with at least one endpoint in A.
- If an edge has both endpoints in A, its flow contributes twice to the first sum, once positively and once negatively, and the two cancel out. (Intuitively: moving stuff around within A does not affect its net exports.)
- Edges leaving A contribute positively to the sum.
- Edges entering A contribute negatively to the sum.
Lemma Bottleneck lemma [00SU]
- November 16, 2026
Let f be any flow and (A,B) be any s-t cut. Then the capacity of the cut is at least the value of the flow, that is, v(f) \leq c(A,B).
Proof.
- November 16, 2026
Remark
- November 16, 2026
From the proof we can see that v(f) = c(A,B) exactly when (1) there is no flow entering A and (2) every edge leaving A is saturated (that is, f(e) = c(e)).
Corollary Saturated cut = max flow + min cut [00T2]
- November 17, 2026
Given some flow f and s-t cut (A,B), if v(f) = c(A,B) then f is a max flow and (A,B) is a min cut.
Proof.
- November 17, 2026
Theorem Max flow/min cut [00T3]
- November 17, 2026
Let f be any flow on a flow network G. The following are equivalent:
- v(f) = c(A,B) for some cut (A,B).
- f is a max flow.
- There are no s-t paths in the residual network G_{f}.
Remark
- November 17, 2026
As an aside, theorems of this form ("the following are equivalent") do not come up as often in computer science, but they are a lot of fun. (We already saw one other similar example earlier.) How do we prove theorems of this form? If we think of each proposition as a vertex, and proving that P implies Q corresponds to adding a directed edge from P to Q, then our goal is to ensure that the resulting graph is strongly connected, so there is a path from any proposition to any other. Since implication is transitive, this shows that all the propositions are logically equivalent.
Proof.
- November 17, 2026
- 1 \Rightarrow 2 is just Saturated cut = max flow + min cut.
- 2 \Rightarrow 3 because Augmenting increases flow value: if there were an s-t path in G_{f}, then we could increase the flow along that path, so f would not be a max flow. (This is the contrapositive of 2 \Rightarrow 3.)
(3 \Rightarrow 1) is more interesting. Suppose there are no s-t paths in G_f; then we must somehow come up with a cut (A,B) whose capacity is equal to that of the flow! To this end, define an s-t cut (A,B) as follows:
- A = all nodes reachable from s in G_{f}.
- B = everything else.
Notice that
- s \in A (s is trivially reachable from itself).
- t \in B (t can’t be in A, since we assumed there are no s-t paths in G_{f}).
The Flow Value Lemma tells us that the value of the flow is equal to the net flow across the cut (A,B), that is, v(f) = v(A,B) = \sum _{e : A \to B} f(e) \;\; - \sum _{e : B \to A} f(e).
Note that each edge (u,v) leaving A must be filled to capacity, since otherwise there would be a forwards edge from u to v with the remaining capacity in G_f, but then by definition we would have v \in A since v would be reachable in G_f. Similarly, each edge entering A must have 0 flow since if it didn’t, there would be a backwards edge from v to u in G_f, and then u would be in A as well.
Hence, we have
Corollary Ford-Fulkerson is correct [00T4]
- November 17, 2026
The Ford-Fulkerson algorithm is correct.
Proof.
- November 17, 2026