simnetwork | R Documentation |
simnetwork
simulates adjacency matrices.
simnetwork(dnetwork, normalise = FALSE)
dnetwork |
is a list of sub-network matrices, where the (i, j)-th position of the m-th matrix is the probability that i be connected to j, with i and j individuals from the m-th network. |
normalise |
boolean takes |
list of (row-normalized) adjacency matrices.
# Generate a list of adjacency matrices
## sub-network size
N <- c(250, 370, 120)
## distribution
dnetwork <- lapply(N, function(x) matrix(runif(x^2), x))
## network
G <- simnetwork(dnetwork)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.