The codes of this paper are implemented in the DOCES (Dynamical Opinion Clusters Exploration Suite) library.
DOCES is an experimental Python library for simulating opinion dynamics in complex adaptive networks. It is implemented in C for performance reasons.
To install DOCES, simply use the following:
pip install doces
The Python codes to reproduce the paper can be found in the 'figures' folder, where each file reproduces the result of one figure of the paper.
There is no code for Fig. 3 because, in this case, we did not use any Python code. The visualization was done using the visualizer implemented by Silva et al. 2016.
If you publish a scientific paper that uses this material, please cite the following:
Arruda HF, Oliveira KA, Moreno Y. Echo chamber formation sharpened by priority users, iScience (2024). DOI: 10.1016/j.isci.2024.111098.