简体   繁体   English

在图中查找“强连通”子图

[英]Finding “strongly connected” subgraphs in a Graph

I am trying to find an algorithm to find the sub graphs in a undirected connected graph, where each vertex in the subgraph has an edge to every other vertex in the subgraph. 我正在尝试找到一种算法来查找无向连通图中的子图,其中子图中的每个顶点都与子图中的每个其他顶点都有一条边。

My real problem is that I am having trouble classifying this problem, so that I can research possible algorithms or solutions. 我的真正问题是无法对这个问题进行分类,因此我无法研究可能的算法或解决方案。

Would anyone know what this problem is called or is there any existing algorithms that achieve this? 谁知道这个问题叫什么,或者有没有现有的算法可以解决这个问题?

我相信您是指集团问题

Hmm, 嗯,

I believe I encountered something like this in my algorithms class. 我相信我在算法课程中遇到了类似的情况。 I'm sorry I don't have my old code however I believe what you are trying to do is similar to Kosaraju's algorithm 抱歉,我没有旧的代码,但是我相信您要尝试执行的操作类似于Kosaraju的算法

I did some brief reading up on this on wikipedia: http://en.wikipedia.org/wiki/Strongly_connected_component 我在Wikipedia上做了一些简短的阅读: http : //en.wikipedia.org/wiki/Strongly_connected_component

I was under the impression however that strongly connected did not imply that every vertex had an edge to every other vertex in the graph. 但是,我给人的印象是,紧密连接并不意味着每个顶点都与图形中的每个其他顶点都有边。 I'm not sure if it's an issue of using "strongly connected" or how you're defining it. 我不确定使用“强连接”还是定义它的问题。

I googled it for clarification and I believe that strongly connected implies this: strongly connected if there is a path in each direction between each pair of vertices of the graph ex 我在Google上进行了搜索,以进行澄清,并且我相信“强连通”的含义是:如果图ex的每对顶点之间在每个方向上都有一条路径,则强连通

a->b->c->a would be strongly connected. a-> b-> c-> a将紧密连接。

By your definition I believe you are trying to say that: a->b->c->a && a->c->b->a. 根据您的定义,我相信您正在尝试说:a-> b-> c-> a && a-> c-> b-> a。

Please correct me if I am wrong. 如果我错了,请纠正我。 The way you define connected leads to two different algorithms. 定义连接的方式会导致两种不同的算法。

@D.Shawley Yes I believe that is true based on "where each vertex in the subgraph has an edge to every other vertex in the subgraph." @ D.Shawley是的,基于“子图中每个顶点在子图中每个其他顶点都有边的情况”,我认为这是正确的。 however based on the definition of strongly connected I believe the algorithm is less specific and more related to Kosaraju's 但是基于强连接的定义,我认为该算法的具体程度较低,与Kosaraju的相关性更高

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

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