fanjingfang/Epidemic:COSREF — Code for "Community structure–regulation coupling reveals optimal information diffusion"

Read full text
Authors: fanjingfang
Cited by: 1

Abstract

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.

Publication details

Journal / source
Zenodo (CERN European Organization for Nuclear Research)
Publication date
28 April 2026