tools.py
: functions for quantifying cascade virality
demo.ipynb
: demonstration of how to use
Main dependencies:
time
numpy
networkx
matplotlib
pygraphviz (needed if graphviz_layout is used)
Viral vs. broadcast: Characterizing the virality and growth of cascades.
Yafei Zhang, Lin Wang, Jonathan J. H. Zhu, Xiaofan Wang
EPL (Europhysics Letters), 131(2), 28002 (2020).
https://iopscience.iop.org/article/10.1209/0295-5075/131/28002/meta
A long version of this paper is also available at arXiv preprint:
Go viral or go broadcast? Characterizing the virality and growth of cascades.
arXiv:2006.01027
https://arxiv.org/abs/2006.01027
@article{Zhang2020,
author = {Yafei Zhang and Lin Wang and Jonathan J. H. Zhu and Xiaofan Wang},
title = {Viral vs. broadcast: Characterizing the virality and growth of cascades},
journal = {{EPL} (Europhysics Letters)},
year = {2020},
month = {aug},
publisher = {{IOP} Publishing},
volume = {131},
number = {2},
pages = {28002},
doi = {10.1209/0295-5075/131/28002},
url = {https://doi.org/10.1209/0295-5075/131/28002},
}
Should you have any further quires about the code, please contact at: yflyzhang_at_gmail.com