aryagraph.algorithms.structure.numeric_assortativity#

aryagraph.algorithms.structure.numeric_assortativity(g: Any, attribute: str) → float[source]#

Pearson correlation of a numeric node attribute across edges (NaN when undefined).

Every node must carry attribute (ValueError otherwise).