Propagation and immunization of infection on general networks with both homogeneous and heterogeneous components | Synapse