node.removal.apl.r {netmodels} | R Documentation |
This function tests the effect of the random node removal on the average path length. The nodes are selected randomly using the lineal random number generator provided by R.
node.removal.apl.r(graph, n)
graph |
Igraph network object |
n |
Number of nodes to be randomly removed |
List object containing two objects:
$apl |
a vector with the average path length after n-node removal |
$graph |
Igraph network object describing the resulting network |
Domingo Vargas
data(test.net,package="netmodels") vl <- node.removal.apl.r(test.net,42)