Published April 28, 2026
| Version v1.0.0
Software
Open
fanjingfang/Epidemic:COSREF — Code for "Community structure–regulation coupling reveals optimal information diffusion"
Authors/Creators
Description
COSREF — Code for "Community structure–regulation coupling reveals optimal information diffusion"
Code accompanying the manuscript submitted to Nature Communications.
Contents
- C++ code: Monte Carlo simulations of threshold-based contagion on modular networks
- Python code: Tree-like (TL) approximation, phase diagram computation, and figure generation
Features
- Supports Poisson (ER), Scale-Free (SF), and Random-Regular (RR) network topologies
- Intra- and inter-community regulation parameters (ω_intra, ω_inter)
- Optimal intervention domain identification
- Validation on real-world networks (Friendster, YouTube, Orkut from SNAP)
Requirements
- C++11 or later
- Python 3.x with NumPy, SciPy, Matplotlib
Data
Real-world network data are publicly available from SNAP.
Files
fanjingfang/Epidemic-v1.0.0.zip
Files
(725.7 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:b5d364e03199509b7f8accd30eef77d1
|
725.7 kB | Preview Download |
Additional details
Related works
- Is supplement to
- Software: https://github.com/fanjingfang/Epidemic/tree/v1.0.0 (URL)
Software
- Repository URL
- https://github.com/fanjingfang/Epidemic