Skip to content

SIR Model

A classic SIR (Susceptible-Infected-Recovered) epidemic model using the built-in ModelSIR class on a small-world network.

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