Defined in File Assortativity.hpp
public NetworKit::Algorithm
(Class Algorithm)
Assortativity computes a coefficient that expresses the correlation of a node attribute among connected pairs of nodes.
Public Functions
Initialize Assortativity with a graph G and an array of numerical node values.
G – The graph.
attribute – numerical node value array
Initialize Assortativity with a graph G and a partition of the node set
G – The graph.
partition – partition of the node set
Runs the algorithm. The algorithm is not parallel.
Return the assortativity coefficient.