Maximum flow - Ford-Fulkerson: Undirected graph

和自甴很熟 提交于 2019-12-02 17:38:04

Your approach using two antiparallel edges works. If your edge is a->b (capacity 10, we send 7 over it), we introduce a new residual edge (from b to a that has residual capacity 17, the residual edge from a to b has the remaining capacity 3).

The original back-edge (from b to a) can be left as it is or the new residual edge and the original backedge can be melt into one edge.

I could imagine that adding the residual capacity to the original back-edge is a bit simpler, but not sure about that.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!