Graph Theory37 sections · 1633 units
Open in Course

Core Idea - Max Flow with Unit Capacities

(Flow equals number of roads)

Treat each road as an edge with capacity 11. The maximum flow from 11 to nn equals the maximum number of edge-disjoint paths from source to destination. By max-flow min-cut theorem, the minimum cut capacity equals the max flow.

Since capacities are 11, the min cut is the minimum number of edges to remove. Compute max flow using Dinic or Ford-Fulkerson. The flow value is the answer to the question: how many roads must be blocked?