This folder contains the code and data for the paper entitled Opinion amplification causes extreme polarization in social network by Soo Ling Lim and Peter J. Bentley The code are as follows: - polar.py is the code for the SOAM (Social Opinion Amplification Model) model - plot.py is the code used to plot the results The data for the paper are in two folders: - The folder "results_scatter" contains the results in Figure 2 (produced by running polar.py with the various settings) - The folder "results_conflict" contains results used to plot the linecharts in Figure 3 (produced by running plot.py)