Three attack strategies are available:
Targeted Attack - Betweenness (default):
Vertices/edges are sorted by betweenness centrality and removed from
highest to lowest. This targets nodes that bridge different network regions.
Targeted Attack - Degree:
Vertices are sorted by degree and removed from highest to lowest.
This targets highly connected hub nodes. Note: for edge attacks, degree
is not available; use betweenness instead.
Random Failure:
Vertices/edges are removed in random order, averaged over n_iter iterations.
This simulates random component failures.
Strategy:
The strategy parameter controls how targeted attacks work:
"sequential" (default): Recalculates centrality after each
removal. This is a stronger attack because removing a hub changes which
nodes become the new bridges/hubs.
"static": Computes centrality once on the original network and
removes nodes in that fixed order (as in brainGraph). This matches the
original Albert et al. (2000) method.
Scale-free networks are typically robust to random failures but vulnerable
to targeted attacks, while random networks degrade more uniformly.