Skip to main content
. Author manuscript; available in PMC: 2016 Apr 21.
Published in final edited form as: J Theor Biol. 2015 Feb 16;371:154–165. doi: 10.1016/j.jtbi.2015.02.005

Algorithm 1 Evaluating performance of link removal algorithms for a given network A and 300 sets of initially infected nodes, ℐ.

for each link removal algorithm do
  for K = 0 to Kmax do
   for m = 1 to 300 do
    s0(i) = 1 ∀ i ∈ ℐm
    s0(i) = 0 ∀ i ∉ ℐm
    % Identify set of links to remove, ℒ, according to link removal algorithm, f(·). %
    ℒ = f(A, s0, K)
    Ã = A
    Ãij = Ãji = 0 ∀ (i, j) ∈ ℒ
    for n = 1 to 100 do
     Simulate disease spread with network à and initial heath state vector, s0 (see Algorithm 2). Returns final outbreak size, ninf.
     Ninf (n) = ninf
    end for
     Pinf(m)=1100n=1100Ninf(n)
   end for
   return P¯inf(K)=1300m=1300Pinf(m)
  end for
  Plot inf (K) as function of link removal budget K to generate result plots.
end for