Bases: Algorithm
Assortativity computes a coefficient that expresses the correlation of a node attribute among connected pairs of nodes.
G (networkit.graph) – The input graph.
data (list(float)) – Numerical node value array.
Return the assortativity coefficient.
The assortativity coefficient.
float