def degree_mixing_dict(G, x='out', y='in', weight=None, nodes=None, normalized=False):
 xy_iter = node_degree_xy(G, x=x, y=y, nodes=nodes, weight=weight)
 return mixing_dict(xy_iter, normalized=normalized)

def degree_mixing_dict ( G , x = 'out' , y = 'in' , weight = None , nodes = None , normalized = False ) : xy_iter = node_degree_xy ( G , x = x , y = y , nodes = nodes , weight = weight ) return mixing_dict ( xy_iter , normalized = normalized )
return dictionary representation of mixing matrix for degree .