WattsStrogatz {epimdr} | R Documentation |
Function to generate a Watts-Strogats 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)