Author
Listed:
- Samuel Cure
- Florian G Pflug
- Simone Pigolotti
Abstract
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.Author summary: Human social structures tend to be quite heterogeneous, with some individuals having many more social interactions than others. These social structures profoundly affect the spreading of epidemics and can be conveniently conceptualized as networks, in which nodes represent individuals and links represent contacts. However, computer simulations of epidemic models on networks can be slow, and efficient numerical methods are understudied. This prevents computer simulations of epidemics on realistically large networks. In this paper, we present NEXT-Net: an algorithm to efficiently simulate epidemic spreading on networks. Our algorithm can simulate a broad class of models, including networks whose structure evolves in time. Its versatility, ease of use, and performance make it broadly useful for epidemiological studies.
Suggested Citation
Samuel Cure & Florian G Pflug & Simone Pigolotti, 2025.
"Fast and exact stochastic simulations of epidemics on static and temporal networks,"
PLOS Computational Biology, Public Library of Science, vol. 21(9), pages 1-17, September.
Handle:
RePEc:plo:pcbi00:1013490
DOI: 10.1371/journal.pcbi.1013490
Download full text from publisher
Corrections
All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pcbi00:1013490. See general information about how to correct material in RePEc.
If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.
We have no bibliographic references for this item. You can help adding them by using this form .
If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.
For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: ploscompbiol (email available below). General contact details of provider: https://journals.plos.org/ploscompbiol/ .
Please note that corrections may take a couple of weeks to filter through
the various RePEc services.