An agent-based model for emotion contagion and competition in online social media
softwareposted on 08.06.2017 by Jichang Zhao
Code as a research output can either be uploaded directly from your computer or through the code management system GitHub. Versioning of code repositories is supported.
Code of the agent-based emotion contagion model.
weighted directed network path
simulation result path
data/weighted_graph.txt results/simulation.txt params.conf
There are 3 input parameters, including the graph path, result path and the params path.
"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.