Description Usage Arguments Value
Use input graph to estimate power of preferential attachment for Barabasi-Albert algorithm. Fits a power law to the input graph and returns the value to use as the power of preferential attachment in a Barabasi-Albert simulation of a scale-free network. This is the 'power' argument in igraph's 'barabasi.game" function.
1 | fit_barabasi_power(g, mle = FALSE)
|
g |
an input igraph object, the power law will be simulated from this object. |
mle |
if TRUE, estimate the power value of the out-degree distribution using mle via BFGS optimization. If FALSE, use the 'plfit' implementation (see the power.law.fit function in igraph). Default is FALSE. FALSE option will generate a warning if a bad fit is detected but the TRUE option will not. |
a numeric value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.