Defined in File UnionMaximumSpanningForest.hpp
public NetworKit::Algorithm
(Class Algorithm)
Union maximum-weight spanning forest algorithm, computes the union of all maximum-weight spanning forests using Kruskal’s algorithm.
Public Functions
Initialize the union maximum-weight spanning forest algorithm, uses edge weights.
G – The input graph.
Initialize the union maximum-weight spanning forest algorithm using an attribute as edge weight.
This copies the attribute values, the supplied attribute vector is not stored.
G – The input graph.
attribute – The attribute to use, can be either of type edgeweight (double) or count (uint64), internally all values are handled as double.
Execute the algorithm. The algorithm is not parallel.
Get a boolean attribute that indicates for each edge if it is part of any maximum-weight spanning forest.
This attribute is only calculated and can thus only be request if the supplied graph has edge ids.
move – If the attribute shall be moved out of the algorithm instance.
The vector with the boolean attribute for each edge.
Checks if the edge (u, v) is part of any maximum-weight spanning forest.
u – The first node of the edge to check
v – The second node of the edge to check
If the edge is part of any maximum-weight spanning forest.