Disentangling network topology and pathogen spread