Fast and exact stochastic simulations of epidemics on static and temporal networks
Epidemic models on complex networks are widely used to assess how the social structure of a population affects epidemic spreading. However, their numerical simulation can be computationally heavy, especially for large networks. In this paper, we introduce NEXT-Net: a flexible implementation of the next reaction method for simulating epidemic spreading on both static and temporal weighted networks. We find that NEXT-Net is substantially faster than alternative algorithms, while being exact. It permits, in particular, to efficiently simulate epidemics on networks with millions of nodes on a standard computer. It also permits simulating a broad range of epidemic models on temporal networks, including scenarios in which the network structure changes in response to the epidemic. NEXT-Net is implemented in C++ and accessible from Python and R, thus combining speed with user friendliness. These features make our algorithm an ideal tool for a broad range of applications.
Authors
- Florian Pflug (ORCID: https://orcid.org/0000-0002-5344-5359)
- Simone Pigolotti (ORCID: https://orcid.org/0000-0002-6157-6906)
- Samuel Cure (ORCID: https://orcid.org/0000-0003-0816-8185)
Institutions
- Okinawa Institute of Science and Technology Graduate University (JP)
Publication Details
- Journal
- PLoS Computational Biology
- Published
- 2025-09-15
- DOI
- https://doi.org/10.1371/journal.pcbi.1013490
- Citations
- 2
- Primary Topic
- Complex Network Analysis Techniques
- Type
- article
- Field-Weighted Citation Impact
- 2.65