简体   繁体   English

双向图

[英]Biconnected Graph

How do you find out whether an undirected graph is Biconnected or not using its depth first search traversal. 如何使用深度优先搜索遍历来查找无向图是否是双向连接的 Is there any other way than traversing the whole graph to find disconnected pieces of the graph. 除了遍历整个图以查找图的断开连接之外,还有其他任何方法。

You calculate the low(v) for every vertex in linear time (ie during the execution of the DFS). 您可以在线性时间内(即在执行DFS期间low(v)为每个顶点计算low(v) )。 And there exists a bridge (ie an edge whose removal will disconnect the graph ==> not biconnected) iff there's a non-root vertex whose low value is itself OR if the root has more than one child. 如果存在一个非根顶点,其自身的low限值low或者如果根有多个子节点,则存在一个桥(即,其去除将断开图形==>而不是双向连接的边)。

It's explained here on point 5.2 http://www.cse.ohio-state.edu/~lai/780/graph.pdf 在第5.2点对此进行了说明http://www.cse.ohio-state.edu/~lai/780/graph.pdf

我对此没有任何答案,但是我的直觉认为您将必须进行深度优先搜索遍历,因为图的biconnected属性是整个图的属性,而不是图的任何子集。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM