Defined in File ConnectedComponents.hpp
public NetworKit::ComponentDecomposition
(Class ComponentDecomposition)
Public Functions
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 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 connected component of the input graph G.