wattsStrogatz | R Documentation |
Function to generate a Watts-Strogatz network
wattsStrogatz(N, K, Prw)
N |
the number of nodes |
K |
the number of neighbors to which each node is connected so degree = 2*K |
Prw |
the rewiring probability |
An object of class CM (contact matrix)
cm2=wattsStrogatz(N=20, K=4, Prw=.3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.