Builds a scale-free network using the method of Albert and Barab\'asi (Reviews of Modern Physics, Vo. 74, 2002). A saturated network of size 'm' is first seeded, with new components being added with 'm' edges sequentially until a network of size S is produced.

create_sfn(S, m)

Arguments

S

The size of the network (number of components)

m

The number of vertices that newly added components will have

Value

A scale-free network represented by a square matrix

Examples

eg_swn <- create_sfn(S = 8, m = 2);