Dependent random graphs and spatial epidemics