Defined in File ComponentDecomposition.hpp
public NetworKit::Algorithm
(Class Algorithm)
public NetworKit::ConnectedComponents
(Class ConnectedComponents)
public NetworKit::DynConnectedComponents
(Class DynConnectedComponents)
public NetworKit::DynWeaklyConnectedComponents
(Class DynWeaklyConnectedComponents)
public NetworKit::ParallelConnectedComponents
(Class ParallelConnectedComponents)
public NetworKit::StronglyConnectedComponents
(Class StronglyConnectedComponents)
public NetworKit::WeaklyConnectedComponents
(Class WeaklyConnectedComponents)
Abstract class for algorithms that compute the components of a graph.
Subclassed by NetworKit::ConnectedComponents, NetworKit::DynConnectedComponents, NetworKit::DynWeaklyConnectedComponents, NetworKit::ParallelConnectedComponents, NetworKit::StronglyConnectedComponents, NetworKit::WeaklyConnectedComponents
Public Functions
Constructs the ComponentDecomposition class for the given Graph G.
G – The graph.
Get the number of connected components.
The number of connected components.
Get the component in which node u is situated.
u – [in] The node whose component is asked for.