watts.strogatz.game | R Documentation |
watts.strogatz.game()
was renamed to sample_smallworld()
to create a more
consistent API.
watts.strogatz.game(dim, size, nei, p, loops = FALSE, multiple = FALSE)
dim |
Integer constant, the dimension of the starting lattice. |
size |
Integer constant, the size of the lattice along each dimension. |
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. |
loops |
Logical scalar, whether loops edges are allowed in the generated graph. |
multiple |
Logical scalar, whether multiple edges are allowed int the generated graph. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.