BarabasiAlbert: Function to generate a Barabasi-Albert network

Description Usage Arguments Value Examples

View source: R/rfuncs.R

Description

Function to generate a Barabasi-Albert network

Usage

1

Arguments

N

the number of nodes

K

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

Value

An object of class CM (contact matrix)

Examples

1
cm3=BarabasiAlbert(200, 4)

Example output

Loading required package: shiny
Loading required package: deSolve
Loading required package: polspline

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