Skip to content

Enables to create a CM from a costumizable probability distribution (Poisson or Power Law). From this Configuration Model, uniform percolation -- bond and site -- is performed.

Notifications You must be signed in to change notification settings

MatteoScianna/Configuration_Model_-_Percolation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 

Repository files navigation

Vaccination Strategies and Epidemic Scenarios

In this repositories you can find different tools in order to

  • create graphs from a given degree distribution (configuration model);
  • apply different percolation methods to a given graph;
  • simulate the evolution of a SIR model on a diluited network.

File functions.py in src folder contains all the functions to do so. Available possibilities for the probaiblity distribution of the graph are Poisson and Power Law, in order to obtain ER and Scale Free networks.

Percolation

Once Configuration Model is created, it is possible to perform different kind of percolation processes on the network. Available percolation models are site percolation, bond percolation and degree-based percolation. File percolation.py contains an example for all these scenarios. Plots below show the evolution of the biggest component of a Configuration Model comparing synthetic and theoretical results.

SATRW

Another possible way to diluite a network is using the Self Avoiding Teleport Random Walk strategy. It is a process that mixes together standard random walk and different possible teleporting rules. At each step a new node is selected either within the neighbors of the previous node or by the selected teleporting rule and hence it is removed from the network. File SATRW.py contains scripts to perform this technique on a given network. Below, plots show the evolution of the time dependent probability distribution and the evolution of the size of the giant component of the network (comparison between theoretical and simulated results).

SIR Model

File SIR.py contains the code for the implementation of an SIR model for a given graph.

Epidemic Scenarios on Diluited Networks

Once we have defined different possible vaccination strategies and implemented the evolution of a possible diseas spread, it is possible to investigate whether the final size of the epidemic changes according to different vaccination strategies. File VAX+SIR.py considers all the different vaccination strategies mentioned before (uniform site percolation, degree-based site percolation, SATRW with uniform teleportation and SATRW with biased teleportaiton) and run an SIR on the corresponding diluited network. Heatmaps below show the impact of an epidemic given a certain value of vaccinated individuals and a different value of the transmissibility parameter of the epidemic.

About

Enables to create a CM from a costumizable probability distribution (Poisson or Power Law). From this Configuration Model, uniform percolation -- bond and site -- is performed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages