This function takes an igraph object and returns a dataframe where each row represents a node/edge deletion order. It is used for simulating a large amount of random attacks in a reproducible way.

MultiAttackOrder(g, Target = "Nodes", Sims, Name = "name")

Arguments

g

an igraph object.

Target

whether Edges or Nodes will be attacked

Sims

the number of attack simulations to be performed

Name

The attribute name of the target

Examples

ExampleTargets <- MultiAttackOrder(g, 100)
#> Error in "igraph" %in% class(graph): object 'g' not found