Interface ISccFinder
An algorithm finding the Strongly Connected Components (SCC) of a IGraph.
Namespace: MoreStructures.Graphs.StronglyConnectedComponents
Assembly: MoreStructures.dll
Syntax
public interface ISccFinder
Remarks
DEFINITION
- A Strongly Connected Component (SCC) of a graph G is a set of vertices of G such that, taken any two vertices
v1 and v2 of G, there is a directed path from v1 to v2 and a directed path from v2 to v1.
- That is, every vertex in a SCC can reach and can be reached by any other vertex of the same SCC, whereas two
vertices of two different SCC can be such that one is reachable from the other, but not viceversa.
- A SCC is an extension specific to directed graphs of the concept of Connected Component, which instead only
requires a path from v1 to v2 for CC[v1] to be the same of CC[v2].
- While in an undirected graph a path from v1 to v2 implies a path from v2 to v1, that's not the case for
directed graphs. So bidirectionality is required.
Methods
| Improve this Doc View SourceFind(IGraph)
Finds the Strongly Connected Components (SCC) of the provided graph
.
Declaration
IList<int> Find(IGraph graph)
Parameters
Type | Name | Description |
---|---|---|
IGraph | graph | An IGraph instance of any type, with or without loops. |
Returns
Type | Description |
---|---|
IList<System.Int32> | A list L of as many System.Int32 as the number of vertices in |