Analysis of epidemic size and thresholds in ER and power-law degree distributed networks. Outbreak sizes (as measured by the difference between X-resistant individuals before and after the introduction of one single X-infectious individual in the system) are presented for ER networks with different average degrees (a) and power-law networks with different degree exponents α (c). The dependence of the vaccination threshold, , with the average network degree for ER networks (b) and α exponent for power-law networks (d), respectively, is compared with the corresponding analytical predictions given by the heterogeneous mean-field approximation. Stochastic simulations were performed in networks of size N = 105 and N = 5 × 105 for ER and power-law networks, respectively. Error bars are computed as the standard deviation over 200 realizations. The rest of parameters were chosen according to table 1.