graph-algorithms icon indicating copy to clipboard operation
graph-algorithms copied to clipboard

Implement Edmonds-Karp Algorithm

Open AhmedHamdiy opened this issue 7 months ago • 5 comments
trafficstars

Description: The Edmonds-Karp algorithm is a specific implementation of the Ford-Fulkerson method that finds the maximum flow in a flow network. It uses Breadth-First Search (BFS) to find the shortest augmenting path, ensuring a time complexity of O(VE²).

Why is this needed? This algorithm is widely used in network flow problems, such as:

  • Network routing
  • Bipartite matching
  • Circulation problems

Tasks:

  • Implement the Edmonds-Karp algorithm class using BFS for augmenting path selection.
  • Ensure the function accepts a directed, weighted graph with edge capacities.
  • Return the maximum flow value and the corresponding flow in the network.
  • Write unit tests to verify correctness.

AhmedHamdiy avatar Mar 28 '25 06:03 AhmedHamdiy

@Ducasse Can I work on this issue. I think it's a good feature to be added to pharo

AhmedHamdiy avatar Mar 28 '25 14:03 AhmedHamdiy

Go for it!

jordanmontt avatar Apr 16 '25 08:04 jordanmontt

Hey @AhmedHamdiy are you working on this issue?

pankaj-bind avatar May 05 '25 12:05 pankaj-bind

I don't think so. But you can work on it if you want @pankaj-bind

jordanmontt avatar May 05 '25 13:05 jordanmontt

ok

pankaj-bind avatar May 05 '25 13:05 pankaj-bind

Already done!

jordanmontt avatar Sep 25 '25 06:09 jordanmontt