Defined in File StronglyConnectedComponents.hpp
public NetworKit::ComponentDecomposition
(Class ComponentDecomposition)
Public Functions
Determines the strongly connected components of a directed graph using Tarjan’s algorithm.
G – Graph A directed graph.
Runs the algorithm.
Public Static Functions
Constructs a new graph that contains only the nodes inside the largest strongly 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.