Cargando…
Temporal Gillespie Algorithm: Fast Simulation of Contagion Processes on Time-Varying Networks
Stochastic simulations are one of the cornerstones of the analysis of dynamical processes on complex networks, and are often the only accessible way to explore their behavior. The development of fast algorithms is paramount to allow large-scale simulations. The Gillespie algorithm can be used for fa...
Autores principales: | , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Public Library of Science
2015
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4627738/ https://www.ncbi.nlm.nih.gov/pubmed/26517860 http://dx.doi.org/10.1371/journal.pcbi.1004579 |
_version_ | 1782398322325061632 |
---|---|
author | Vestergaard, Christian L. Génois, Mathieu |
author_facet | Vestergaard, Christian L. Génois, Mathieu |
author_sort | Vestergaard, Christian L. |
collection | PubMed |
description | Stochastic simulations are one of the cornerstones of the analysis of dynamical processes on complex networks, and are often the only accessible way to explore their behavior. The development of fast algorithms is paramount to allow large-scale simulations. The Gillespie algorithm can be used for fast simulation of stochastic processes, and variants of it have been applied to simulate dynamical processes on static networks. However, its adaptation to temporal networks remains non-trivial. We here present a temporal Gillespie algorithm that solves this problem. Our method is applicable to general Poisson (constant-rate) processes on temporal networks, stochastically exact, and up to multiple orders of magnitude faster than traditional simulation schemes based on rejection sampling. We also show how it can be extended to simulate non-Markovian processes. The algorithm is easily applicable in practice, and as an illustration we detail how to simulate both Poissonian and non-Markovian models of epidemic spreading. Namely, we provide pseudocode and its implementation in C++ for simulating the paradigmatic Susceptible-Infected-Susceptible and Susceptible-Infected-Recovered models and a Susceptible-Infected-Recovered model with non-constant recovery rates. For empirical networks, the temporal Gillespie algorithm is here typically from 10 to 100 times faster than rejection sampling. |
format | Online Article Text |
id | pubmed-4627738 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2015 |
publisher | Public Library of Science |
record_format | MEDLINE/PubMed |
spelling | pubmed-46277382015-11-06 Temporal Gillespie Algorithm: Fast Simulation of Contagion Processes on Time-Varying Networks Vestergaard, Christian L. Génois, Mathieu PLoS Comput Biol Research Article Stochastic simulations are one of the cornerstones of the analysis of dynamical processes on complex networks, and are often the only accessible way to explore their behavior. The development of fast algorithms is paramount to allow large-scale simulations. The Gillespie algorithm can be used for fast simulation of stochastic processes, and variants of it have been applied to simulate dynamical processes on static networks. However, its adaptation to temporal networks remains non-trivial. We here present a temporal Gillespie algorithm that solves this problem. Our method is applicable to general Poisson (constant-rate) processes on temporal networks, stochastically exact, and up to multiple orders of magnitude faster than traditional simulation schemes based on rejection sampling. We also show how it can be extended to simulate non-Markovian processes. The algorithm is easily applicable in practice, and as an illustration we detail how to simulate both Poissonian and non-Markovian models of epidemic spreading. Namely, we provide pseudocode and its implementation in C++ for simulating the paradigmatic Susceptible-Infected-Susceptible and Susceptible-Infected-Recovered models and a Susceptible-Infected-Recovered model with non-constant recovery rates. For empirical networks, the temporal Gillespie algorithm is here typically from 10 to 100 times faster than rejection sampling. Public Library of Science 2015-10-30 /pmc/articles/PMC4627738/ /pubmed/26517860 http://dx.doi.org/10.1371/journal.pcbi.1004579 Text en © 2015 Vestergaard, Génois http://creativecommons.org/licenses/by/4.0/ This is an open-access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are properly credited. |
spellingShingle | Research Article Vestergaard, Christian L. Génois, Mathieu Temporal Gillespie Algorithm: Fast Simulation of Contagion Processes on Time-Varying Networks |
title | Temporal Gillespie Algorithm: Fast Simulation of Contagion Processes on Time-Varying Networks |
title_full | Temporal Gillespie Algorithm: Fast Simulation of Contagion Processes on Time-Varying Networks |
title_fullStr | Temporal Gillespie Algorithm: Fast Simulation of Contagion Processes on Time-Varying Networks |
title_full_unstemmed | Temporal Gillespie Algorithm: Fast Simulation of Contagion Processes on Time-Varying Networks |
title_short | Temporal Gillespie Algorithm: Fast Simulation of Contagion Processes on Time-Varying Networks |
title_sort | temporal gillespie algorithm: fast simulation of contagion processes on time-varying networks |
topic | Research Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4627738/ https://www.ncbi.nlm.nih.gov/pubmed/26517860 http://dx.doi.org/10.1371/journal.pcbi.1004579 |
work_keys_str_mv | AT vestergaardchristianl temporalgillespiealgorithmfastsimulationofcontagionprocessesontimevaryingnetworks AT genoismathieu temporalgillespiealgorithmfastsimulationofcontagionprocessesontimevaryingnetworks |