Builds a small world network using the method of Watts and Strogatz (Nature vol. 393, 1998)

create_swn(S = 100, K = 20, beta = 0.05)

Arguments

S

The size of the network (number of components)

K

Number of edges that each vertice in the network contains

beta

Probability that a random interaction in a regular network is rewired (parameter p in Watts and Strogatz 1998)

Value

A small world network represented by a square matrix

Examples

eg_swn <- create_swn(S = 32, K = 4);