You need Python3.7 and conda to install required packages.
- First, clone the project folder to your computer.
- Then, create a conda environment and activate it:
conda create -n attack-graph python=3.7
conda activate attack-graph
-
After the environment is activated, install the following required packages:
conda install numpy scipy networkx pandas matplotlib ipython jupyter conda install pytorch torchvision -c pytorch
-
Install the package to simulate SIS/SIR dynamics
pip install EoN
This code is used to reproduce the experiments in the following paper:
@article{yu2020optimizing,
title={Optimizing Graph Structure for Targeted Diffusion},
author={Yu, Sixie and Torres, Leonardo and Alfeld, Scott and Eliassi-Rad, Tina and Vorobeychik, Yevgeniy},
journal={arXiv preprint arXiv:2008.05589},
year={2020}
}