Integrating stochasticity and network structure into an epidemic model | Synapse