How to convert this multi source flow network in to single source flow network and find the maximum flow in that?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You create a dummy source node, called Source
, and draw a directed edge of close-to-infinite-capacity (e.g. sum of capacities of all edges of the graph) from Source
to each tank. Every flow in the resulting graph is in one-to-one correspondence with the original multi-source graph.