EoN.get_Pk

EoN.get_Pk(G)[source]

Used in several places so that we can input a graph and then we can call the methods that depend on the degree distribution

Arguments:

G networkx Graph

Returns:
Pk dict
Pk[k] is the proportion of nodes with degree k.