Learn R Programming

fastnet (version 1.0.0)

net.random.plc: Random Network with a Power-law Degree Distribution that Has An Exponential Cutoff

Description

Simulate a random network with a power-law degree distribution that has an exponential cutoff, according to Newman et al. (2001).

Usage

net.random.plc(n, cutoff, exponent)

Arguments

n

The number of the nodes in the network.

cutoff

Exponential cutoff of the degree distribution of the network.

exponent

Exponent of the degree distribution of the network.

Value

A list containing the nodes of the network and their respective neighbors.

Details

The generated random network has a power-law degree distribution with an exponential degree cutoff.

References

Newman, Mark EJ, Steven H. Strogatz, and Duncan J. Watts. "Random graphs with arbitrary degree distributions and their applications." Physical review E 64, no. 2 (2001): 026118.

Examples

Run this code
# NOT RUN {
x <- net.random.plc(1000, 10, 2)
# }

Run the code above in your browser using DataLab