Analysis of an epidemic model on a network