This Python package provides two complementary SIS epidemic‑on‑adaptive-networks models:
• A stochastic Gillespie algorithm (gillespie.py)
• A deterministic effective‑degree ODE model (effective_degree.py)
It includes a ready‑to‑run script (run_simulation.py) which reproduces a test figure.
• Python ≥3.8
• networkx
• numpy
• scipy
• matplotlib
Clone the repository and install in “editable” (development) mode:
git clone <repository_url>
cd <repository_directory>
pip install -e .
Simply run:
python run_simulation.py
This will:
- Build an Erdős–Rényi graph (n=1000, m=1900).
- Execute one effective‑degree ODE simulation and five Gillespie simulations.
- Plot infected‑fraction vs. time and display it interactively.