net.caveman: Caveman Network

Description Usage Arguments Details Value Author(s) References Examples

Description

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

Usage

1
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.

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

1
2
3
## Not run: 
x <- net.caveman(50, 20) #using ncores by default 
## End(Not run)

networkgroupR/fastnet documentation built on May 23, 2019, 1:32 p.m.