Gauging the resilience of complex networks

Whether a transformer catches fire in a power grid, a species disappears from an ecosystem, or water floods a city street, many systems can absorb a certain amount of disruption. But how badly does a single failure weaken the network? And how much damage can it take before it tips into collapse?