fit_barabasi_power: Use input graph to estimate power of preferential attachment...

Description Usage Arguments Value

Description

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.

Usage

1

Arguments

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.

Value

a numeric value.


robertness/lucy documentation built on May 27, 2019, 10:32 a.m.