EoN.get_PGFPrime

EoN.get_PGFPrime(Pk)[source]

Given a degree distribution (as a dict) returns the function \(\psi'(x)\)

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