Epidemic spreading in weighted homogeneous networks with community structure