Skip to content

Stochastic Block Model

Generates contact networks using the stochastic block model (SBM) and runs an SIR simulation on it.

View this example on GitHub.

Try It Live

Edit the code below and click ▶ Run to compile and execute it in your browser via Compiler Explorer. No local setup needed!

🧪 Interactive Example