![]() |
Satsuma
a delicious .NET graph library
|
Finds the connected components of a graph. More...
Public Types | |
| enum | Flags { None = 0, CreateComponents = 1 << 0 } |
Public Member Functions | |
| ConnectedComponents (IGraph graph, Flags flags=0) | |
Properties | |
| List< HashSet< Node > > | Components [get, set] |
| The connected components of the graph. More... | |
| int | Count [get, set] |
| The number of connected components in the graph. More... | |
| IGraph | Graph [get, set] |
| The input graph. More... | |
Finds the connected components of a graph.
Example:
Definition at line 42 of file Connectivity.cs.
| Enumerator | |
|---|---|
| None | |
| CreateComponents |
If set, Components will contain the connected components. |
Definition at line 45 of file Connectivity.cs.
Definition at line 82 of file Connectivity.cs.
|
getset |
The connected components of the graph.
Null if Flags.CreateComponents was not set during construction.
Definition at line 58 of file Connectivity.cs.
|
getset |
The number of connected components in the graph.
Definition at line 55 of file Connectivity.cs.
|
getset |
The input graph.
Definition at line 53 of file Connectivity.cs.
1.8.3.1