WattsStrogatz: Function to generate a Watts-Strogats network

Description Usage Arguments Value Examples

View source: R/rfuncs.R

Description

Function to generate a Watts-Strogats network

Usage

1
WattsStrogatz(N, K, Prw)

Arguments

N

the number of nodes

K

the number of neighbors to which each node is connected so degree = 2*K

Prw

the rewiring probability

Value

An object of class CM (contact matrix)

Examples

1
cm2=WattsStrogatz(N=20, K=4, Prw=.3)

epimdr documentation built on March 26, 2020, 7:41 p.m.

Related to WattsStrogatz in epimdr...