What is node-disjoint paths?

跟風遠走 提交于 2019-12-23 23:17:58

问题


I need explanation about what exactly node-disjoint paths? and How to determine maximum number of node-disjoint path between two nodes Source(s) and Sink(t) in a directed graph. Can anyone explain with graphically.


回答1:


A path is sequence of vertices: s, v_1, .., v_m, t. Two paths s, v_1, .., v_m, t and s, u_1, ..., u_k, t are called node-disjoint if v_i != u_j for any valid i and j.

We can reduce this problem to finding the maximum number of edge-disjoint paths by splitting each vertex (except for the source and the target) into two, adding an edge from the first copy to the second copy, redirecting all edges that end in this vertex to the first copy and all outgoing edges from the second copy. After that, the answer is the maximum flow in this graph (all edges should have a unit capacity).




回答2:


You can also think that every vertex has its own capacity, which means each vertex can be passed only once. Build a new graph in this way:
(1)capacity(vi) = 1
(2)capacity(ei) = 1
then run maximum flow. The answer is the maximum number.



来源:https://stackoverflow.com/questions/41894843/what-is-node-disjoint-paths

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