Created a generalized algo to edmonds karp (#724) · zinating/algorithms-python@2fc2ae3 · GitHub
Skip to content

Commit 2fc2ae3

Browse files
viraatdaspoyea
authored andcommitted
Created a generalized algo to edmonds karp (TheAlgorithms#724)
Edmonds Karp algorithm is traditionally with only one source and one sink. What do you do if you have multiple sources and sinks? This algorithm is a generalized algorithm that regardless of however many sinks and sources you have, will allow you to use this algorithm. It does this by using the traditional algorithm but adding an artificial source and sink that allows with "infinite" weight.
1 parent df04d94 commit 2fc2ae3

1 file changed

Lines changed: 182 additions & 0 deletions

File tree

Lines changed: 182 additions & 0 deletions

0 commit comments

Comments
 (0)