Simulated Disease Spread by Network Density

How diseases spread is everyone’s top of mind right now, and as the urbanized San Francisco Bay Area shelters in place while rural West Virginia was the last state to confirm its first case, I was wondering how the density of social networks affect the spread of diseases. I did a simple simulation in R to find out.