This repository contains the computational framework developed within the project for studying:
- Community-structured epidemic diffusion
- Media and awareness effects
- Ideological heterogeneity
- Opinion dynamics
- Synthetic and randomized network generation
.
├── epidemic/
│ ├── multi_type_epidemic.py
│ ├── config.json
│ └── input/
│
├── opinion/
│ ├── opinion_dynamics.py
│ ├── config.json
│ └── input/
│
├── network/
│ ├── config.json
│ └── geometric_block_model/
│ └── src/rhbm/
│ ├── rhbm_generate.py
│ └── rhbm_randomize.py
│
├── gui/
│ ├── epidemic_gui.py
│ ├── opinion_gui.py
│ └── network_gui.py
│
├── requirements.txt
└── README.md
Implements a multi-type extension of SIR/SIS with:
- Community-dependent mixing
- Media-intensity feedback
- Optional exposed stage (SEIR/SEIS)
- Mean-field and network simulation modes
Run:
cd epidemic
python multi_type_epidemic.pyGUI:
cd gui
python epidemic_gui.pyImplements:
- Community-based opinion evolution
- Social interaction term
- External risk-driven modulation
- Radicalization vs prudence regimes
Run:
cd opinion
python opinion_dynamics.pyGUI:
cd gui
python opinion_gui.pyTwo tools are available:
rhbm_generate.py: synthetic network generationrhbm_randomize.py: randomization of observed networks
Located in:
network/geometric_block_model/src/rhbm/
GUI:
cd gui
python network_gui.pyClone repository:
git clone https://gitlab.com/YOUR_GROUP/YOUR_REPO.git
cd YOUR_REPOInstall dependencies:
pip install -r requirements.txtAll simulations are parameter-driven via JSON configuration files.
Random seeds are controlled in configuration files.
MIT License.
If you use this software in academic work, please cite:
[Insert project citation or DOI here]