rsbm: Simulate a network of a stochastic block model

View source: R/generation.R

rsbmR Documentation

Simulate a network of a stochastic block model

Description

Simulate a network of a stochastic block model

Usage

rsbm(n, theta, directed = TRUE)

Arguments

n

number of vertices

theta

stochastic block model parameter with latent group probabilities $pi and connectivy parameters $gamma

directed

directed network (TRUE by default) or undirected (FALSE)

Value

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

Examples

theta1 <- list(pi=c(.5,.5), gamma=matrix((1:4)/8,2,2))
rsbm(10, theta1)

graphclust documentation built on June 7, 2023, 5:18 p.m.

Related to rsbm in graphclust...