DeleteCarefully: Delete Carefully This is a helper fucntion for the Fixed and...

Description Usage Arguments See Also Examples

View source: R/DeleteCarefully.R

Description

Delete Carefully This is a helper fucntion for the Fixed and Adaptive strategies. It is called by the functions FixedStrategyAttack and AdaptiveStrategyAttack.. It deletes nodes/edges without trying to delete more nodes/edges than there are in the graph. It is a bit long and fiddly so is broken out for ease of maintenance. It takes in a graph and outputs a smaller graph

Usage

1
DeleteCarefully(g, Target, DeleteVect, Number, Name)

Arguments

g

the graph that is going to be modified

Target

whether Nodes or Edges are being targeted.

DeleteVect

The vector of names to be deleted

Number

The number of Nodes/Edges to be deleted

Name

the name of the target e.g "Link", or "name"

See Also

@seealso FixedStrategyAttack, AdaptiveStrategyAttack

Examples

1
DeleteCarefully(g, Target, DeleteVect, Number, Name)

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