sbm.game | R Documentation |
sbm.game()
was renamed to sample_sbm()
to create a more
consistent API.
sbm.game(n, pref.matrix, block.sizes, directed = FALSE, loops = FALSE)
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.