Temporal Gillespie algorithm: Fast simulation of contagion processes on time-varying networks - Archive ouverte HAL Accéder directement au contenu
Pré-Publication, Document De Travail Année : 2015

Temporal Gillespie algorithm: Fast simulation of contagion processes on time-varying networks

Résumé

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 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.
Fichier principal
Vignette du fichier
1504.01298v1.pdf (1.36 Mo) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-01140134 , version 1 (09-04-2015)
hal-01140134 , version 2 (02-11-2015)

Identifiants

Citer

Christian L. Vestergaard, Mathieu Génois. Temporal Gillespie algorithm: Fast simulation of contagion processes on time-varying networks. 2015. ⟨hal-01140134v1⟩
276 Consultations
336 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More