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

Removes the specified nodes

Description

This function calculates the average path length of the network after the removal of the selected nodes. The nodes to be removed are defined on the vector provided by the user.

Usage

node.removal.apl.l(graph, v)

Arguments

graph Igraph network object
v List object with the nodes to be removed

Value

List object containing two objects: $apl a vector with the average path length after node removal and $graph an object with the Igraph network object describing the resulting network.

Author(s)

Domingo Vargas

Examples


v <- c(1:10)
data(test.net,package="netmodels")
vl <- node.removal.apl.l(test.net,v)


[Package netmodels version 0.2 Index]