| efficiency | R Documentation |
Efficiency is the reciprocal of internodal distance. Thus, the efficiency beween nodes i and j is defined as e_{i,j} = \frac{1}{d_{i,j}} where d_{i,j} denotes the distance between nodes i and j for all i \neq j.
efficiency.matrix(G, mode = "in")
avg.efficiency(G, mode = "in")
global.efficiency(G, mode = "in")
G |
Graph object of class "igraph". See |
mode |
One of |
The function efficiency.matrix calculates an efficiency matrix whose elements correspond to elements in the graph distance matrix. The function avg.efficiency calculates average efficiencies of nodes to all other nodes, thus providing a local measure of graph connectedness. The function global.efficiency calculates the mean of the of all pairwise efficiencies, thus providing a global measure of graph connectedness. For all three functions, reciprocals of infinite distances are taken to be zero.
The function efficiency.matrix returns a reciprocal distance matrix for nodes in G. The function avg.efficiency treats efficiency as a local measure, and thus returns a vector whose entries are average efficiencies for each node. The function global.efficiency returns a scalar (the mean of the reciprocal distance matrix).
Ken Aho. Gabor Csardi wrote the function distances in igraph.
Ek, B., VerSchneider, C., & Narayan, D. A. (2015). Global efficiency of graphs. AKCE International Journal of Graphs and Combinatorics, 12(1), 1-13.
kon_full <- streamDAGs("konza_full")
efficiency.matrix(kon_full)
avg.efficiency(kon_full)
global.efficiency(kon_full)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.