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...

Full description

Bibliographic Details
Main Authors: Christian L Vestergaard, Mathieu Génois
Format: Article
Language:English
Published: Public Library of Science (PLoS) 2015-10-01
Series:PLoS Computational Biology
Online Access:http://europepmc.org/articles/PMC4627738?pdf=render
id doaj-863225ad2cf041d083f212feaf8d9d10
record_format Article
spelling doaj-863225ad2cf041d083f212feaf8d9d102020-11-24T21:56:05ZengPublic Library of Science (PLoS)PLoS Computational Biology1553-734X1553-73582015-10-011110e100457910.1371/journal.pcbi.1004579Temporal Gillespie Algorithm: Fast Simulation of Contagion Processes on Time-Varying Networks.Christian L VestergaardMathieu GénoisStochastic 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.http://europepmc.org/articles/PMC4627738?pdf=render
collection DOAJ
language English
format Article
sources DOAJ
author Christian L Vestergaard
Mathieu Génois
spellingShingle Christian L Vestergaard
Mathieu Génois
Temporal Gillespie Algorithm: Fast Simulation of Contagion Processes on Time-Varying Networks.
PLoS Computational Biology
author_facet Christian L Vestergaard
Mathieu Génois
author_sort Christian L Vestergaard
title 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_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_sort temporal gillespie algorithm: fast simulation of contagion processes on time-varying networks.
publisher Public Library of Science (PLoS)
series PLoS Computational Biology
issn 1553-734X
1553-7358
publishDate 2015-10-01
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.
url http://europepmc.org/articles/PMC4627738?pdf=render
work_keys_str_mv AT christianlvestergaard temporalgillespiealgorithmfastsimulationofcontagionprocessesontimevaryingnetworks
AT mathieugenois temporalgillespiealgorithmfastsimulationofcontagionprocessesontimevaryingnetworks
_version_ 1725859518855774208