Plays from YouTube. Watch on YouTube
How do you move as much as possible through a network when every connection has a capacity limit?
Meet Network Flow: where graph algorithms, conservation laws, and optimization reveal the true bottlenecks in a system.
We start by building a flow network with directed edges, capacities, a source, and a sink. Then we explain why a valid flow cannot exceed any edge's capacity and why every intermediate node must conserve what flows through it.
Next, we show why simply pushing flow along the first available route can get stuck too early. Using a worked four-node example, we send ten units, build the residual network, and discover that a backward edge lets us undo part of an earlier choice and increase the total flow to twenty.
From there, we develop the Ford-Fulkerson method, bottleneck augmentation, and Edmonds-Karp's shortest-augmenting-path rule. We also distinguish an integer-capacity running-time bound from a polynomial-time guarantee in the size of the input.
Finally, we prove the Max-Flow Min-Cut Theorem. By tracking which vertices remain reachable in the residual network, we find a cut whose capacity exactly equals the flow, giving a mathematical certificate that no better answer exists.
The big idea: Finding the maximum flow is not only about discovering routes. It is about allowing earlier decisions to be reversed, then proving that the final bottleneck is unavoidable.
Algorithms explained visually, one concept at a time.