The ability to sample random networks that can accurately represent real social contact networks is essential to the study of viral epidemics. The Barab