Defined in File Sparsifiers.hpp
public NetworKit::Sparsifier
(Class Sparsifier)
Produces sparsified graphs that contain approximately a given percentage of edges of the original graph. The edges are selected unformly at random.
Public Functions
Creates a new instance of the Random Sparsifier.
graph – the input graph
ratio – edge ratio in [0,1] to be kept in the sparse graph.
REQ: Needs to fill outputGraph and set hasOutput to true.