This repository contains code for various works related to the analysis of opinion dynamics under the voter model.
-
All code used for Towards control of opinion diversity by introducing zealots into a polarised social group is in
opinion_control.ipynb
. Foldersimu_results/
contains results of the simulations performed for the paper and used for plots. -
All code used for Forecasting elections results via the voter model with stubborn agents is in
elections.ipynb
. The data is stored inelections_files/
.
util.py
file contains custom functions used throughout the various notebooks.