Random network (Erdos-Renyi)
— nodes, — edges, avg degree —
S —
I —
R —
peak I: — · outbreak size: —
Small-world network (Watts-Strogatz)
— nodes, — edges, avg degree —
S —
I —
R —
peak I: — · outbreak size: —
Infectious count over time — random (solid) vs small-world (dashed)

2D Network Epidemic — Random vs Small-World

A flat, node-and-edge companion to the particle-based Epidemic Dynamics (SEIR) simulation. Instead of agents wandering a plane, every individual here is a fixed node in a real contact network, and infection can only cross an actual edge with a per-contact transmission probability. Two topologies — a random Erdos-Renyi graph and a Watts-Strogatz small-world graph — run side by side with identical disease parameters and edge count, isolating how contact structure alone reshapes outbreak size and speed, with a social-distancing control that prunes real edges from both.