generate_holme_kim | R Documentation |
Simulate a scale-free network with relatively high clustering, comparing to B-A networks (Holme and Kim, 1999).
generate_holme_kim(size, m, triad_prob = 0.1, directed = FALSE)
size |
is the number of nodes of the network |
m |
is the number of nodes to which a new node connects at each iteration |
triad_prob |
is Triad formation probability after each preferential attachment mechanism |
directed |
whether the graph is directed or not. Default is FALSE |
The Holme-Kim network model is a simple extension of B-A model. It adds an additional step, called "Triad formation", with the probability pt that compensates the low clustering in B-A networks.
A list containing the nodes of the network and their respective neighbors.
Xu Dong, Nazrul Shaikh
Holme, Petter, and Beom Jun Kim. "Growing scale-free networks with tunable clustering."Physical review E65, no. 2 (2002): 026107.
{generate_holme_kim (1000, 20, 0.1)}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.