Actually there are discussions about this problem:
The approach is to add another node (source/sink or both) and add also edges (with infinite capacities) to link them with the rest of nodes. Finally, we got a graph with one source - one sink, afterward, we just apply the Maximum Flow Algorithm.
My Questions:
- How to compute Maximum Flow for graph contains infinite capacities since all
NetworkX
methods does not support it? - Are there any other methods to solve this kind of problem?
Thank you