Gravar-mail: Discrete-time dynamic network model for the spread of susceptible-infective-recovered diseases