Simulate a collection of networks of a mixture of stochastic block models
Simulate a collection of networks of a mixture of stochastic block models
rMixSBM(vec_n, thetaMixSBM, directed =TRUE)
Arguments
vec_n: vector with number of vertices
thetaMixSBM: K-list for a mixture with K components. Each field is a list with the stochastic block model parameter (piandgamma) and a cluster proportion ($prop)
directed: directed networks (TRUE by default) or undirected (FALSE)
Returns
list with a list of adjacency matrices (listGraphs),alistofnodelabels(listLatentZ) and a vector with the graph clustering ($label)