Description Usage Arguments Value Examples
Retrieve the network after vertex attack.
1 2 |
graph |
An igraph object. |
mode |
Attack mode, possible values are |
sample.number |
Number of attacked vertex, if |
nodes |
Index of attacked vertex, if |
vertex.name |
Name of attacked vertex, if |
... |
Other arguments. |
An igraph object.
1 2 3 | g<-barabasi.game(100,power=0.8,directed=FALSE)
g1<-net.attack(g,mode="sample",sample.number=10)
g1<-net.attack(g,mode="exact",nodes=sample(1:100,20))
|
Loading required package: Rcpp
Loading required package: igraph
Attaching package: 'igraph'
The following objects are masked from 'package:stats':
decompose, spectrum
The following object is masked from 'package:base':
union
Loading required package: MCL
Loading required package: linkcomm
Loading required package: RColorBrewer
Welcome to linkcomm version 1.0-11
For a step-by-step guide to using linkcomm functions:
> vignette(topic = "linkcomm", package = "linkcomm")
To run an interactive demo:
> demo(topic = "linkcomm", package = "linkcomm")
To cite, see:
> citation("linkcomm")
NOTE: To use linkcomm, you require read and write permissions in the current directory (see: help("getwd"), help("setwd"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.