Class EdmondsKarpMaximumFlow

java.lang.Object
org.graph4j.flow.MaximumFlowBase
org.graph4j.flow.EdmondsKarpMaximumFlow
All Implemented Interfaces:
MaximumFlowAlgorithm

public class EdmondsKarpMaximumFlow extends MaximumFlowBase
The Edmonds–Karp algorithm is an implementation of the Ford–Fulkerson method for computing the maximum flow in a network. The algorithm finds shortest augmenting paths (in terms of the number of edges) using Breadth-First Search (BFS). The time complexity of the algorithm is min(O(nmU),O(n m2), where n is the number of vertices, m is the number of edges and U is an upper bound of edge capacities.
Author:
Cristian Frăsinaru