rsbm function

Simulate a network of a stochastic block model

Simulate a network of a stochastic block model

rsbm(n, theta, directed = TRUE)

Arguments

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

Returns

list with simulated adjacency matrix (adj)andnodelabels(adj) and node labels (Z)

Examples

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

Useful links