degree_distribution: Degree distribution of the network
Description
This function calculates the degree distribution of the network. First it
fits exponential, power law and truncated power law distribution models,
and calculates the AIC values to select the best fit, and finally it plots
the degree distribution in a log log scale showing the three fitted models
mentioned above against the observed distribution.
exports three principal results:
1. A list with network degree distribution values and with the value of each fit model
2. A list with each model results and AIC of the distribution models
3. A Ghraph of the degree distribution with the models adjust
In DDvalues, k represent the degree of the network and cumulative
the probability that each specie could be have this degree (pk).
Observation: In the graph, the zero values are not represented but this result are incorporate in the DF result
Arguments
Network
a trophic network of class network
name
a categorical variable that represent
the distribution model
scale
a character stating if the graph is on a log-log scale
("loglog") or arithmetic scale ("arithmetic"), defaults to arithmetic