An agent-based model for emotion contagion and competition in online social media ZhaoJichang 2017 <div>Code of the agent-based emotion contagion model.</div><div><br></div><div>Input parameters:</div><div>weighted directed network path</div><div>simulation result path</div><div>param path</div><div><br></div><div>parameters example:</div><div>data/weighted_graph.txt results/simulation.txt params.conf</div><div><br></div><div>There are 3 input parameters, including the graph path, result path and the params path.</div><div><br></div><div>"params.conf" shows an example of params file. There are 12 params in total, including the probability of pushing new tweets, the screen size, the maximum simulation steps, the proportions of newly posted four emotion, the correlation of the four emotions and the retweet threshold.</div>