NetworkX

Previous topic

networkx.attribute_mixing_matrix

Next topic

networkx.degree_mixing_dict

networkx.degree_mixing_matrix

degree_mixing_matrix(G, normalized=True)

Return mixing matrix for attribute.

Parameters:

G : graph

NetworkX graph object.

normalized : bool (default=False)

Return counts if False or probabilities if True.

Returns:

m: numpy array :

Counts, or joint probability, of occurrence of node degree.