Graph Theory37 sections · 1633 units
Open in Course

Why Max Flow Works

(Flow equals matching)

In the flow network, integer max flow sends at most 11 unit through each vertex (by capacity constraints). A flow of ff units means ff edge-disjoint paths from ss to tt, each passing through one vertex in LL and one in RR.

This set of paths corresponds exactly to a matching of size ff. Since max flow finds the largest such flow, it finds the maximum matching. Algorithms like Dinic or Ford-Fulkerson solve this in O(V2E)O(V^2 E) or faster.

Space complexity is O(V)O(V) for the data structures used.