NetSwan (version 0.1)

swan_connectivity: 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.

Value

Numeric vector with the swan_connectivity values of all the vertices.

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.

References

Lhomme S., 2015, Analyse spatiale de la structure des reseaux techniques dans un contexte de risques, Cybergeo : European Journal of Geography

Examples

Run this code
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)

Run the code above in your browser using DataCamp Workspace