MaxFlowMinCutTheorem
The Max-Flow Min-Cut Theorem is a fundamental result in network flow theory. In a directed graph G=(V,E) with a designated source s and sink t, each edge e has a nonnegative capacity c(e). A flow f assigns to each edge a real value f(e) with 0 ≤ f(e) ≤ c(e), satisfies conservation at all vertices except s and t, and has a value defined as the net flow out of s (equivalently into t). The theorem states that the maximum possible flow from s to t equals the minimum total capacity of any s-t cut.
An s-t cut is a partition of V into S and T with s ∈ S and t
A standard route to proving the theorem uses the residual graph of a flow, where residual capacities
Consequences include the existence of integral max flows when all capacities are integers, and various polynomial-time