rsbm | R Documentation |

Simulate a network of a stochastic block model

```
rsbm(n, theta, directed = TRUE)
```

`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) |

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

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.