NetworkX

Previous topic

networkx.degree_mixing_matrix

Next topic

networkx.attribute_mixing_dict

networkx.degree_mixing_dict

degree_mixing_dict(G, normalized=False)

Return dictionary representation of mixing matrix for degree.

Parameters:

G : graph

NetworkX graph object.

normalized : bool (default=False)

Return counts if False or probabilities if True.

Returns:

d: dictionary :

Counts or joint probability of occurrence of degree pairs.