Skip to content

Code to replicate the experimental results in the paper "Optimizing Graph Structure for Targeted Diffusion"

Notifications You must be signed in to change notification settings

marsplus/POTION

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POTION

Code to replicate experimental results in the paper.

  1. Use conda to create a virtual environment named POTION:
conda create -n POTION python=3.7
  1. Activate the virtual environment:
conda activate POTION
  1. Install necessary packages (PyTorch version is 1.4.0):
conda install numpy scipy pandas matplotlib seaborn pandas networkx=2.4 jupyter
conda install pytorch torchvision -c pytorch
pip install EoN
  1. Create a folder at the root directory to save results:
mkdir result/
  1. Check out the ipython notebook src/exp.ipynb for an example of running the code. In order to run POTION on networks not listed in the paper, please check out the example at the end of the notebook.

Reference

@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}
}

About

Code to replicate the experimental results in the paper "Optimizing Graph Structure for Targeted Diffusion"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published