vulnerability: Calculate graph vulnerability

Description Usage Arguments Value Author(s) References See Also

View source: R/vulnerability.R

Description

This function calculates the vulnerability of the vertices of a graph. Here, vulnerability is considered to be the proportional drop in global efficiency when a given node is removed from the graph. The vulnerability of the graph is considered the maximum across all vertices.

Usage

1
vulnerability(g, use.parallel = TRUE, weighted = FALSE)

Arguments

g

An igraph graph object

use.parallel

Logical indicating whether or not to use foreach (default: TRUE)

weighted

Logical indicating whether weighted efficiency should be calculated (default: FALSE)

Value

A numeric vector of length equal to the vertex count of g

Author(s)

Christopher G. Watson, [email protected]

References

Latora V., Marchiori M. (2005) Variability and protection of infrastructure networks. Physical Review E, 71:015103.

See Also

efficiency


brainGraph documentation built on May 30, 2017, 1:34 a.m.