net.rewired.caveman: Rewired (Connected) Caveman Network

Description Usage Arguments Details Value Author(s) References Examples

View source: R/net.rewired.caveman.R

Description

Simulate a rewired caveman network of m cliques of size k, and with a link rewiring probability p.

Usage

1
net.rewired.caveman(nc, m, p, seed = 99)

Arguments

nc

Number of cliques (or caves) in the network.

m

Number of nodes per clique.

p

Link rewiring probability.

seed

A random seed.

Details

The rewired caveman network is built on the corresponding regular caveman network with m cliques of size k. Then the links in this caveman network are rewired with probability p.

Value

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

Author(s)

Xu Dong, Nazrul Shaikh

References

Watts, D. J. Networks, Dynamics, and the Small-World Phenomenon. Amer. J. Soc. 105, 493-527, 1999.

Examples

1
2
3
## Not run: 
x <- net.rewired.caveman(50, 20, 0.0005)
## End(Not run)

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