Method GetConnectedComponentsOfUndirectedGraph
GetConnectedComponentsOfUndirectedGraph(Graph<T>)
Returns the connected components of an undirected graph.
Declaration
public static List<List<T>> GetConnectedComponentsOfUndirectedGraph(Graph<T> undirectedGraph)
Parameters
| Type | Name | Description |
|---|---|---|
| Graph<T> | undirectedGraph | The undirected graph to analyze. |
Returns
| Type | Description |
|---|---|
| List<List<T>> | A list of connected components. |