Dinic’s algorithm

Find how much water a network can carry from a pump to a tank each minute. To use the available pipes, send water along several routes.

A wave numbers the layers. Send water only to the next layer until these routes are blocked. Then build new layers in the residual network.

Time is O(V²E + V²), space O(V²).