Skip to content

Maximum flow

networks

Level 3 of 3

Also called Edmonds-Karp algorithm and Ford-Fulkerson method.

Finds the most that can be sent from one place to another along one-way roads that each carry only so much, like water through pipes. Keep finding the shortest way with room on every road and send as much as its tightest road allows, until no way is left.

ways sent along
0
roads looked along
0

step 1 of 1

Examples

Tap a spot to put your pen down there, then tap a spot next to it to draw a road. Keep tapping to draw on.

Places stand in two rows, A to D above and E to H below. A one-way road joins two places next to each other (one road across each square), with a > and how much it carries, 1 to 99: A>B 4. Then a semicolon, the source and the sink: A>B 4, B>F 2; A F.