Learn R Programming

QuACN (version 1.8.0)

spanningTreeSensitivity: Spanning tree sensitivity measures

Description

This method calculates two spanning tree sensitivity measures.

Usage

spanningTreeSensitivity(g, one.eds = NULL)

Arguments

g
a graph as a graphNEL object.
one.eds
the one-edge-deleted subgraphs of g as a list of adjacency matrices, as returned by edgeDeletedSubgraphs(g). If this parameter is omitted, the subgraphs will be calculated automatically.

Value

The results are returned in a list with two entries named STS and STSD.

Details

This method calculates the spanning tree sensitivity (STS) and the spanning tree sensitivity differences (STSD) measures.

References

J. Kim and T. Wilhelm. What is a complex graph? Physica A, 387:2637-2652, 2008

Examples

Run this code
library(graph)
set.seed(123)
g <- randomEGraph(as.character(1:12), 0.5)

result <- spanningTreeSensitivity(g)
result$STS
result$STSD

Run the code above in your browser using DataLab