A General Evolutionary Framework for different classes of Critical Node Problems