View source: R/network_sample_smallworld.R
sample a small world graph and return the (normalized) adjacency matrix
1 | network_sample_smallworld(N, dim = 1, nei = 1, p = 0.3)
|
N |
integer constant, the population size. |
dim |
integer constant, dimension of the starting lattice; |
nei |
integer constant, the neighborhood within which the vertices of the lattice will be connected. |
p |
real constant between zero and one, the rewiring probability. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.