net.watts.strogatz: Watts-Strogatz Small-world Network

Description Usage Arguments Details Value Author(s) References Examples

View source: R/net.watts.strogatz.R

Description

Simulate a small-world network according to the model of Watts and Strogatz (1998).

Usage

1

Arguments

n

The number of the nodes in the network (or lattice).

k

Number of edges per node.

re

Rewiring probability.

Details

The formation of Watts-Strogatz network starts with a ring lattice with n nodes and k edges per node, then each edge is rewired at random with probability re.

Value

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

Author(s)

Xu Dong, Nazrul Shaikh

References

Duncan J. Watts and Steven H. Strogatz: Collective dynamics of 'small world' networks, Nature 393, 440-442, 1998.

Examples

1
2
3
## Not run: 
x <- net.watts.strogatz(1000, 10, 0.05)
## End(Not run)

fastnet documentation built on Jan. 13, 2021, 5:28 p.m.