EdmondsKarp
Edmon ds-Karp algorithm is an instance of the Ford-Fulkerson method for computing the maximum flow in a flow network. It improves upon the basic approach by choosing augmenting paths that are shortest in the number of edges, found via breadth-first search in the residual graph. The algorithm repeatedly finds an s-t path, determines the bottleneck capacity along that path, and augments the flow by that amount, updating the residual capacities accordingly.
The core concept is the residual graph, which reflects how much additional flow can be sent along
Edmonds-Karp was introduced by Jack Edmonds and Richard Karp in 1972 and is renowned for proving a
In practice, the algorithm can be implemented with adjacency lists and a queue for BFS, updating a