Published April 28, 2026
| Version v1.0
Software
Open
chenxiaojie92/photodetachment_microscopy_in_magnetic_field: ## 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
chenxiaojie92/photodetachment_microscopy_in_magnetic_field-v1.0.zip
Files
(76.5 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:29c56d6615e0df8a05fe9f74ca3b1ac4
|
76.5 MB | Preview Download |
Additional details
Related works
- Is supplement to
- Software: https://github.com/chenxiaojie92/photodetachment_microscopy_in_magnetic_field/tree/v1.0 (URL)