Defined in File WeaklyConnectedComponents.hpp
public NetworKit::ComponentDecomposition
(Class ComponentDecomposition)
Determines the weakly connected components of a directed graph.
Public Functions
Create WeaklyConnectedComponents class for Graph G.
G – The graph.
The generic run method which calls runImpl() and takes care of setting hasRun to the appropriate value.
Public Static Functions
Constructs a new graph that contains only the nodes inside the largest weakly connected component.
G – The input graph.
compactGraph – If true, the node ids of the output graph will be compacted (i.e. re-numbered from 0 to n-1). If false, the node ids will not be changed.
The largest weakly connected component of the input graph G.