Bases: Algorithm
Abstract base class for coarsening measures
Returns the coarse graph
Coarse graph.
networkit.Graph
Returns the coarse graph
Map containing node from coarse graph and all its mappings from finer graph
dict(int :
list(int))
Returns the coarse graph
List containing mapping, whereas index represents node u from fine graph and value represents node v from coarse graph
list(dict(int :
int))
Bases: GraphCoarsening
Coarsens graph according to a matching.
G (networkit.Graph) – The input graph.
M (networkit.matching.Matching) – The matching, which is used for coarsening.
noSelfLoops (bool, optional) – If true, self-loops are not produced. Default: False
Bases: GraphCoarsening
Coarsens graph according to a partition.
G (networkit.Graph) – The input graph.
zeta (networkit.Partition) – The partition, which is used for coarsening.
parallel (bool, optional) – If true, algorithm runs in parallel. Default: True