Home▸Networks & Graph Theory▸Epidemic Spread on a Random Network (2D)

Epidemic Spread on a Random Network (2D)

2D discrete-time SIR epidemic simulator running on an Erdős–Rényi random network: tune infection probability, recovery time and network density, drag nodes, and watch susceptible/infected/recovered counts evolve on a live chart.

Networks & Graph Theory2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-network-science ↗ Open standalone

The 3D original generates and compares three landmark network models as static structures — Erdős–Rényi random, Barabási–Albert scale-free, Watts–Strogatz small-world. This 2D companion fixes the model to Erdős–Rényi and asks what happens on the network rather than how it is built: a discrete-time SIR epidemic spreads node to node along real edges, so the same giant-component threshold that decides whether the graph is even connected also decides whether an outbreak can reach more than a handful of nodes. Drag any node to rearrange the same force-directed layout the 3D page uses, tune infection probability and recovery time, and watch the susceptible/infected/recovered counts trace out on a live chart.

⚙ Under the hood

2D discrete-time SIR epidemic simulator running on an Erdős–Rényi random network: tune infection probability, recovery time and network density, drag nodes, and watch susceptible/infected/recovered counts evolve on a live chart.

SIR modelepidemic spreadpercolationerdos-renyigiant componentnetwork science

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)