You can use Python to easily program epidemic models like SIR (Susceptible-Infected-Recovered). See for example the link attached, where you can find an implementation of the SIR model in Python.
I believe you must somehow got source code for SIR model. I too work on same problem "finding spreader on social network". It would be great if you could share me the source code and give me few hints about it.
what is the difference between the SIR model in single layer and multilayer network? it can be said that in a multilayer network, first the SIR value is calculated for each layer and then I get the average for all layer.