node.removal.apl.r {netmodels}R Documentation

Test the effect of random node removal on the average path length

Description

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.

Usage

node.removal.apl.r(graph, n)

Arguments

graph Igraph network object
n Number of nodes to be randomly removed

Value

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

Author(s)

Domingo Vargas

Examples


data(test.net,package="netmodels")

vl <- node.removal.apl.r(test.net,42)

[Package netmodels version 0.2 Index]