wattsStrogatz {epimdr2}R Documentation

Function to generate a Watts-Strogatz network

Description

Function to generate a Watts-Strogatz network

Usage

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

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

[Package epimdr2 version 1.0-9 Index]