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 k∗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.