swan_connectivity {NetSwan} | R Documentation |
Impact on connectivity when a node is removed
Description
Swan_connectivity measures the loss of connectivity when excluding a node.
Usage
swan_connectivity(g)
Arguments
g |
The graph to analyze. Graph builds with igraph. |
Details
Connectivity loss indices quantify the decrease in the number of relationships between each node when one or several components are removed. Swan_connectivty measures the loss of connectivity when excluding a node.
Value
Numeric vector with the swan_connectivity values of all the vertices.
Author(s)
Serge Lhomme
References
Lhomme S., 2015, Analyse spatiale de la structure des reseaux techniques dans un contexte de risques, Cybergeo : European Journal of Geography
Examples
library(igraph)
library(NetSwan)
elec <- matrix(nc=2, byrow=TRUE, c(11,1, 11,10, 1,2, 2,3, 2,9,
3,4, 3,8, 4,5, 5,6, 5,7, 6,7, 7,8, 8,9, 9,10))
gra<-graph.edgelist(elec, directed=FALSE)
f3<-swan_connectivity(gra)
[Package NetSwan version 0.1 Index]