def numeric_assortativity_coefficient(G, attribute, nodes=None):
 a = numeric_mixing_matrix(G, attribute, nodes)
 return numeric_ac(a)

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 .