Maximal flow with multiple sources and sinks

1k Views Asked by At

How do I find a maximal flow in a network with multiple sources and sinks using the Ford-Fulkerson algorithm 'without adding anything to the network'. I know that we could add a supersource node and a supersink node. But there is a question in chapter P of 'Graph Theory - A Problem-Oriented Approach' by Daniel Marcus that asks for a way to do it without adding a supersource node and a supersink node.

1

There are 1 best solutions below

2
On BEST ANSWER

With Ford-Fulkerson algorithm, use any path from a source to a sink in the residual graph as an augmenting path. To find such a path, start a BFS from all the sources simultaneously: you initialize the BFS queue with all the arcs leaving the sources.