pymnet.degs

pymnet.degs(net, degstype='distribution')

Returns the degree distribution of a multilayer network.

If the network has more than 1 aspect the degree distribution is returned for node-layer tuples.

Parameters:
netMultilayerNetwork

A multilayer network object.

degstypestring

If ‘distribution’, then degs dicts give the degree distributions. I.e., keys are degrees, and corresponding values are number of nodes with the given degree. If ‘nodes’, then degs dicts give node degrees. I.e, keys are node names and corresponding values are degrees of those nodes.