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