Gravar-mail: Influence of network dynamics on the spread of sexually transmitted diseases