Defined in File KruskalMSF.hpp
public NetworKit::SpanningForest
(Class SpanningForest)
Creates a minimum spanning tree for each connected component.
Public Functions
Computes for each component a minimum weight spanning tree (or simply a spanning tree in unweighted graphs). Uses Kruskal’s algorithm. Time complexity: sort(n) + n * inverse Ackermann(n, m).
Total edge-weight of the spanning forest. Number of edges in forest if input graph is unweighted.