A wrapper around igraph::sample_smallworld() with dim=1

plotNET_SW(n = 100, k = 5, p = 0.05, doPlot = TRUE)

Arguments

n

Size of the lattice (integer)

k

Neighbourhood size (integer)

p

Rewiring probability (between 0 and 1)

doPlot

PLot the igraph object

Value

A Strogatz-Watts small-world igraph object

See also