Learn R Programming

QuACN (version 1.8.0)

efficiency: Efficiency complexity index

Description

This method calculates the efficiency complexity measure.

Usage

efficiency(g, dist=NULL)

Arguments

g
a graph as a graphNEL object.
dist
the distance matrix of the graph. Will be calculated automatically if left empty.

Value

It returns the efficiency complexity measure as a double-precision floating point value.

Details

This method calculates the efficiency complexity measure.

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:10), 0.6)

efficiency(g)

# alternatively:
dist <- distanceMatrix(g)
efficiency(g, dist)

Run the code above in your browser using DataLab