net.caveman {fastnet} | R Documentation |
Caveman Network
Description
Simulate a (connected) caveman network of m cliques of size k.
Usage
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 |
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
.
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
## Not run:
x <- net.caveman(50, 20) #using ncores by default
## End(Not run)
[Package fastnet version 1.0.0 Index]