barabasiAlbert: Function to generate a Barabasi-Albert network

View source: R/network.R

barabasiAlbertR Documentation

Function to generate a Barabasi-Albert network

Description

Function to generate a Barabasi-Albert network

Usage

barabasiAlbert(N, K)

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

cm3=barabasiAlbert(200, 4)

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