View source: R/network_distributions.R
| rnet.SmWorld | R Documentation |
igraph::sample_smallworld to Generate Random Graph Object from the Watts-Strogatz Small-World ModelCall igraph::sample_smallworld and convert the output to simcausal network matrix.
The parameters are the same as those of igraph::sample_smallworld.
The loop edges aren't allowed (loops = FALSE) and the multiple edges aren't allowed either multiple = FALSE.
rnet.SmWorld(n, dim, nei, p)
n |
Size of the network graph (the number of nodes). |
dim |
Same as in |
nei |
Same as in |
p |
Same as in |
A matrix with n rows, each row lists the indices of friends connected to that particular observation.
rnet.gnp, rnet.gnm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.