/link-recommendation-polarization

Data and plotting code accompanying the paper 'Link recommendation algorithms and dynamics of polarization in online social networks'

Primary LanguageJupyter NotebookMIT LicenseMIT

Link recommendation and polarization

Data and code to plot the key figures of paper "Link recommendation algorithms and dynamics of polarization in online social networks" by Fernando P. Santos, Yphtach Lelkes and Simon A. Levin

Directories and files

  • DATA/ contains the raw data to plot each figure

  • Data/figX contais the raw data corresponding to Figure X

  • Plot.ipynb is a Jupyter notebook that uses data in Data/ and plots key figures

  • Analytic.ipynb implements the analytic model in SI (Figure S11 and Figure S12)

Python dependencies

  • Python 3.7
  • matplotlib
  • NumPy