net.rewired.caveman function

Rewired (Connected) Caveman Network

Rewired (Connected) Caveman Network

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

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.

Returns

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

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.

Examples

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

References

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

Author(s)

Xu Dong, Nazrul Shaikh

  • Maintainer: Nazrul Shaikh
  • License: GPL (>= 2)
  • Last published: 2020-12-01

Useful links