Description Usage Arguments Examples
The most simple attack strategy. Targets either nodes or edges.
| 1 | RandomAttack(g, Target = "Nodes", Number = 1, Name = "name")
 | 
| g | An igraph object representing a power-grid. | 
| Target | The target of the attack. A string either "Nodes" or "Edges". | 
| Number | The number of targets to generate. An integer the default is set to 1. | 
| Name | The attribute name of the target | 
| 1 | RandomAttack(g, Number = V(g))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.