rCollectSBM function

Simulate a sample of networks of a stochastic block model

Simulate a sample of networks of a stochastic block model

rCollectSBM(vec_n, theta, directed = TRUE)

Arguments

  • vec_n: vector with number of vertices
  • theta: stochastic block model parameter with latent group probabilities piandconnectivyparameterspi and connectivy parameters gamma
  • directed: directed networks (TRUE by default) or undirected (FALSE)

Returns

list with a list of adjacency matrices (listGraphs)andalistofnodelabels(listGraphs) and a list of node labels (listLatentZ)

Examples

theta1 <- list(pi=c(.5,.5), gamma=matrix((1:4)/8,2,2)) rCollectSBM(2:4, theta1)
  • Maintainer: Tabea Rebafka
  • License: GPL-2
  • Last published: 2023-06-07

Useful links