sbm.game {igraph} | R Documentation |
Sample stochastic block model
Description
sbm.game()
was renamed to sample_sbm()
to create a more
consistent API.
Usage
sbm.game(n, pref.matrix, block.sizes, directed = FALSE, loops = FALSE)
Arguments
n |
Number of vertices in the graph. |
pref.matrix |
The matrix giving the Bernoulli rates. This is a
|
block.sizes |
Numeric vector giving the number of vertices in each group. The sum of the vector must match the number of vertices. |
directed |
Logical scalar, whether to generate a directed graph. |
loops |
Logical scalar, whether self-loops are allowed in the graph. |
[Package igraph version 2.0.3 Index]