ringlattice: Function to generate a ring lattice

View source: R/network.R

ringlatticeR Documentation

Function to generate a ring lattice

Description

Function to generate a ring lattice

Usage

ringlattice(N, K)

Arguments

N

the number of nodes

K

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

Value

An object of class CM (contact matrix)

Examples

cm=ringlattice(N=20,K=4)

epimdr2 documentation built on Dec. 28, 2022, 2:23 a.m.