Learn R Programming

mcPAFit (version 0.1.4)

simple_net: Generating simulated networks

Description

This function generates a complex network from the Barabasi-Albert model and a random order to create a random network.

Usage

simple_net(time_step, 
           num_seed           = 2     , 
           p                  = 0.5   ,
           alpha              = 1     ,
           alpha_out          = 0   )

Arguments

time_step

Integer. Indicates the number of time-steps.

num_seed

Integer. Number of nodes in the initial network.

p

Numeric. Proportion of number of nodes.

alpha

Numeric. The attachment exponent for the in-degree.

alpha_out

Numeric. The attachment exponent for the out-degree.

Value

An three-column matrix containing the generated network.

References

1. Pham, T. and Sheridan, P. and Shimodaira, H. (2015). mcPAFit: Nonparametric Measurement of Preferential Attachment and Fitness from a Single Network Snapshot. Conference on Complex Systems 2015, September 2015, Arizona.

Examples

Run this code
library("mcPAFit")
data <- simple_net(100) # Time-steps = 100

Run the code above in your browser using DataLab