Scale-free networks (Barabási-Albert model) are resilient to random failures but highly vulnerable to targeted attacks on high-degree hubs. This simulation shows the giant component fraction S(f) as nodes are removed — random removal causes gradual degradation while hub-targeted attacks cause rapid collapse near a critical threshold.