Code of the agent-based emotion contagion model.

Input parameters:

weighted directed network path

simulation result path

param path

parameters example:

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.