Simulate a sample of networks of a stochastic block model
rCollectSBM(vec_n, theta, directed = TRUE)
vec_n
: vector with number of verticestheta
: stochastic block model parameter with latent group probabilities gammadirected
: directed networks (TRUE by default) or undirected (FALSE)list with a list of adjacency matrices (listLatentZ)
theta1 <- list(pi=c(.5,.5), gamma=matrix((1:4)/8,2,2)) rCollectSBM(2:4, theta1)
Useful links