MultiAttackOrder: Generate a dataframe of deletion orders

Description Usage Arguments Examples

View source: R/MultiAttackOrder.R

Description

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.

Usage

1
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

1
ExampleTargets <- MultiAttackOrder(g, 100)

JonnoB/PowerGridNetworking documentation built on Aug. 7, 2021, 3:04 a.m.