make_DM | R Documentation |
Make an already existing network according to the Duplication and Mutation mechanism.
make_DM(size, net_kind, divergence, mutation, directed = FALSE)
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. |
mutation |
Probability that the new node gains edges not associated with the node it duplicates. Needs to be between zero and one. |
directed |
Binary variable determining if the network is directed, resulting in off-diagonal asymmetry in the adjacency matrix. 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 # Mutation parameter mutation <- 0.1 # Make network according to the Duplication & Mutation mechanism make_DM(size = size, net_kind = "matrix", divergence = divergence, mutation = mutation)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.