Description Usage Arguments See Also Examples
View source: R/DeleteCarefully.R
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
1 | DeleteCarefully(g, Target, DeleteVect, Number, Name)
|
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" |
@seealso FixedStrategyAttack
, AdaptiveStrategyAttack
1 | DeleteCarefully(g, Target, DeleteVect, Number, Name)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.