powered by
Function to generate a Barabasi-Albert network
BarabasiAlbert(N, K)
the number of nodes
the number of neighbors to which each node is connected so degree = 2*K
An object of class CM (contact matrix)
# NOT RUN { cm3=BarabasiAlbert(200, 4) # }
Run the code above in your browser using DataLab