Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maximum flow in the undirected graph

Tags:

network-flow

http://postimg.org/image/nfw50be6p/

How can I find maximum flow in this undirected graph? Can anyone show the step?

like image 406
runrunrun Avatar asked Apr 20 '15 07:04

runrunrun


1 Answers

There is algorithm called Ford-Fulkerson algorithm which gives the maximum flow of a flow network in polynomial time, you can look it up in the book Algorithm Design by Kleinberg and Tardos, or even in CLRS.

The only thing you need to do to solve your problem is that you should replace every edge in your undirected grah by two edges backwards and forwards with the same capacity and then solve your problem using the Ford-Fulkerson algorithm. It can be easily proven that in such conversion, flow only propagates through one of the two edges and always one of them is not used.

like image 164
Ashkan Kazemi Avatar answered Dec 27 '22 16:12

Ashkan Kazemi