Code for fitting to degree distributions of complex networks using maximum likelihood estimators.
Accompanies the paper "Fitting degree distributions of complex networks" authors Shane Mannion and Padraig MacCarron.
`MLE_functions.py' - file containing all necessary functions to fit to a degree distribution, plot the results and bootstrap the data.
`ASoIaF.py' - file containing a worked example of the methodology applied to the degree distribution of the character network from A Song Of Ice and Fire [1]
`ASoIaF' - pickle file containing a networkx.Graph object
[1] Gessey-Jones, Thomas and Connaughton, Colm and Dunbar, Robin and Kenna, Ralph and MacCarron, P{\'a}draig and O’Conchobhair, Cathal and Yose, Joseph (2020) Narrative structure of A Song of Ice and Fire creates a fictional world with realistic measures of social complexity. Proceedings of the National Academy of Sciences 117(46) 28582--28588