swan_connectivity: Impact on connectivity when a node is removed

Description Usage Arguments Details Value Author(s) References Examples

View source: R/swan_connectivity.R

Description

Swan_connectivity measures the loss of connectivity when excluding a node.

Usage

1

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

1
2
3
4
5
6
7
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)

Example output

Loading required package: igraph

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union

NetSwan documentation built on May 2, 2019, 1:30 p.m.