Simulate a network of a stochastic block model
rsbm(n, theta, directed = TRUE)
n
: number of verticestheta
: stochastic block model parameter with latent group probabilities gammadirected
: directed network (TRUE by default) or undirected (FALSE)list with simulated adjacency matrix (Z)
theta1 <- list(pi=c(.5,.5), gamma=matrix((1:4)/8,2,2)) rsbm(10, theta1)
Useful links