Markov stochastic models (SIS, SIR, SEIR...) to describe the evolution of epidemics on a network of connected individuals.
This repo contains standalone code for simulating epidemics and study the influence of the underlying graph and points to some theoretical results regarding the expected lifetime of an epidemic as a function of its infection/recovery rates and the network topology (in particular its adjacency spectrum).
Enjoy while you stay indoors helping us reduce our spectral radius :)
To install : clone repo and pip install -e markov_epidemic/ (or see https://pypi.org/project/markov-epidemic/)
Also check out the Bokeh app to play with different networks and epidemic models dynamically:
To run the app : run bokeh serve --show markov_epidemic_app/