networkx.algorithms.assortativity.mixing_dict¶
-
mixing_dict(xy, normalized=False)[source]¶ Returns a dictionary representation of mixing matrix.
- Parameters
xy (
listorcontaineroftwo-tuples) – Pairs of (x,y) items.attribute (
string) – Node attribute keynormalized (
bool (default=False)) – Return counts if False or probabilities if True.
- Returns
d – Counts or Joint probability of occurrence of values in xy.
- Return type
dictionary