Network topological determinants of pathogen spread