def numeric_assortativity_coefficient(G, attribute, nodes=None):
    a = numeric_mixing_matrix(G,attribute,nodes)
    return numeric_ac(a)
Compute assortativity for numerical node attributes.
dataset/ETHPy150Open networkx/networkx/networkx/algorithms/assortativity/correlation.py/numeric_assortativity_coefficient