EoN.get_PGF

EoN.get_PGF(Pk)[source]

Given a degree distribution (as a dict), returns the probability generating function

Arguments:
Pk dict
Pk[k] is the proportion of nodes with degree k.
Returns:
psi function
\(\psi(x) = \sum_k P_k[k] x^k\)