make_DD | R Documentation |
Makes a network according to the Duplication and Divergence mechanism.
make_DD(size, net_kind, divergence, directed = TRUE)
size |
Number of nodes in the network. |
net_kind |
If the network is an adjacency matrix ("matrix") or an edge list ("list"). |
divergence |
Probability that the new node loses edges associated with the node it duplicates. Needs to be between zero and one. |
directed |
Whether the target network is directed. Defaults to TRUE. |
Different from Duplication & Mutation models in that edges can only be lost.
An adjacency matrix.
Ispolatov, I., Krapivsky, P. L., & Yuryev, A. (2005). Duplication-divergence model of protein interaction network. Physical review E, 71(6), 061911.
# Import netcom library(netcom) # Network size (number of nodes) size <- 10 # Divergence parameter divergence <- 0.237 # Make network according to the Duplication & Divergence mechanism make_DD(size = size, net_kind = "matrix", divergence = divergence)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.