A wrapper around igraph::sample_smallworld()
with dim=1
plotNET_SW(n = 100, k = 5, p = 0.05, doPlot = TRUE)
Size of the lattice (integer)
Neighbourhood size (integer)
Rewiring probability (between 0
and 1
)
PLot the igraph object
A Strogatz-Watts small-world igraph object
Other tools for plotting networks:
plotNET_BA()
,
plotNET_groupColour()
,
plotNET_groupWeight()
,
plotNET_prep()