Building epidemiological models from R0: an implicit treatment of transmission in networks