net.caveman function

Caveman Network

Caveman Network

Simulate a (connected) caveman network of m cliques of size k.

net.caveman(m, k, ncores = detectCores())

Arguments

  • m: Number of cliques (or caves) in the network.
  • k: Number of nodes per clique.
  • ncores: Number of cores, by default detectCores() from parallel.

Returns

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

Details

The (connected) caveman network is formed by connecting a set of isolated k - cliques (or "caves"), neighbor by neighbor and head to toe, using one edge that removed from each clique such that all m cliques form a single circle (Watts 1999). The total number of nodes, i.e. n, in this network is given by kmk*m.

Examples

## Not run: x <- net.caveman(50, 20) #using ncores by default ## 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