Minimum cut from a maximum flow

Find a set of pipes you can close to cut the tank off from the pump. Choose the set with the smallest total capacity. It shows the bottleneck in the network.

After the final wave, mark vertices reachable from the source in the residual network. The cut consists of original arrows from the marked side to the unmarked side.

After Edmonds–Karp, extracting the cut takes O(V + E). Its capacity equals the maximum flow.