Network structure and disease risk for an endemic infectious disease