On the continuum limit of epidemiological models on graphs: convergence results, approximation and numerical simulations