# R: Function to generate a Watts-Strogats network

WattsStrogatz {epimdr} | R Documentation

## Function to generate a Watts-Strogats network

### Description

Function to generate a Watts-Strogats 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 = 2xK
`Prw` | the rewiring probability

### Value

An object of class CM (contact matrix)

### Examples

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

[Package epimdr version 0.6-4 Index]