| rnet.SmWorld {simcausal} | R Documentation |
Call igraph::sample_smallworld to Generate Random Graph Object from the Watts-Strogatz Small-World Model
Description
Call 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.
Usage
rnet.SmWorld(n, dim, nei, p)
Arguments
n |
Size of the network graph (the number of nodes). |
dim |
Same as in |
nei |
Same as in |
p |
Same as in |
Value
A matrix with n rows, each row lists the indices of friends connected to that particular observation.
See Also
[Package simcausal version 0.5.6 Index]