Learn R Programming

epimdr (version 0.6-5)

BarabasiAlbert: 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

Run this code
# NOT RUN {
cm3=BarabasiAlbert(200, 4)
# }

Run the code above in your browser using DataLab