Text this: Edge-based modelling for disease transmission on random graphs: an application to mitigate a syphilis outbreak