Edmonds–Karp algorithm

This is an old revision of this page, as edited by Sesse (talk | contribs) at 10:29, 20 July 2004 (Fixed termination condition (F-F always terminates, but might do so very slowly with large weights)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In computer science, in the field of graph theory, the Edmonds-Karp algorithm is an implementation of the Ford-Fulkerson algorithm. The important additional feature is that the shortest augmenting path is used at each step, which guarantees that the computation will terminate in polynomial time. In most implementations, the shortest augmenting path is found using breadth-first search.

The Edmonds-Karp algorithm runs in O(VE2) time, where V and E is the number of vertices and edges in a graph, respectively.