Providing full max-flow min-cut proof
I've prepared a detailed, structured proof defining the residual graph, augmenting paths, and showing that absence of augmenting paths implies maximum flow. The argument constructs a cut from reachable nodes in the residual graph and proves its capacity equals the flow, completing the max-flow min-cut theorem.
Let (G=(V,E)) be a directed graph with a distinguished source (s), sink (t), and a capacity function (c\colon E\to\mathbb{R}{\geq 0}). A flow is a function (f\colon E\to\mathbb{R}{\geq 0}) satisfying
- the capacity constraints (0\leq f(u,v)\leq c(u,v)) for all ((u,v)\in E), and
- flow conservation (\sum_{u:(u,v)\in E}f(u,v)=\sum_{w:(v,w)\in E}f(v,w)) for all (v\in V\setminus{s,t}).
Its value is (|f|=\sum_{(s,v)\in E}f(s,v)-\sum_{(v,s)\in E}f(v,s)), the net outflow from (s).
Two simple lemmas underpin the max–flow–min–cut theorem.
-
If ((S,T)) is any (s)–(t) cut, i.e. (S\cup T=V), (S\cap T=\varnothing), (s\in S), (t\in T), then
[
|f| = \sum_{u\in S,v\in T} f(u,v) - \sum_{u\in T,v\in S} f(u,v)\leq \sum_{u\in S,v\in T} c(u,v)=:c(S,T).
]
Thus the value of any flow is bounded above by the capacity (c(S,T)) of any cut.
-
Given a flow (f), its residual capacity on an arc ((u,v)) is (c_f(u,v)=c(u,v)-f(u,v)); we also allow “backward” arcs ((v,u)) with residual capacity (c_f(v,u)=f(u,v)). The residual graph (G_f) has vertex set (V) and an arc ((u,v)) of capacity (c_f(u,v)) whenever (c_f(u,v)>0). An (s)–(t) path in (G_f) is called an augmenting path. If (P) is an augmenting path, let (\delta=\min_{(u,v)\in P}c_f(u,v)); increasing (f) by (\delta) along forward arcs of (P) and decreasing it by (\delta) along backward arcs yields a new feasible flow of value (|f|+\delta).
The Ford–Fulkerson method starts from the zero flow and repeatedly augments along an (s)–(t) path in the current residual graph; each augmentation strictly increases (|f|), so this process stops when there is no augmenting path.
To see why this stopping condition characterizes a maximum flow, take a flow (f) with no (s)–(t) path in (G_f) and let (S) be the set of vertices reachable from (s) in (G_f); set (T=V\setminus S). Then ((S,T)) is a cut. If ((u,v)) is an original arc with (u\in S), (v\in T) then there is no residual arc from (u) to (v), so (c_f(u,v)=0) and hence (f(u,v)=c(u,v)): all arcs crossing from (S) to (T) are saturated. If ((u,v)) is an original arc with (u\in T), (v\in S) and (f(u,v)>0), then the residual graph would contain the backward arc ((v,u)) of capacity (f(u,v)), making (u) reachable, contrary to (u\in T); thus (f(u,v)=0) on arcs from (T) to (S). Plugging this into the cut identity gives
[
|f|=\sum_{u\in S,v\in T} f(u,v) - \sum_{u\in T,v\in S} f(u,v)
=\sum_{u\in S,v\in T} c(u,v)=c(S,T).
]
So (f) attains the capacity of the cut ((S,T)). By the first lemma no flow can have value exceeding the capacity of any cut, so (|f|) is maximal and (c(S,T)) is minimal. This establishes the max–flow–min–cut theorem: the maximum value of an (s)–(t) flow equals the minimum capacity of an (s)–(t) cut.