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)
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) |
A small world network represented by a square matrix
eg_swn <- create_swn(S = 32, K = 4);