Understanding how infections spread in populations is important for predicting and controlling outbreaks.