gives the link efficiency of the graph g.
GraphLinkEfficiency[{vw,…}]
uses rules vw to specify the graph g.
GraphLinkEfficiency
gives the link efficiency of the graph g.
GraphLinkEfficiency[{vw,…}]
uses rules vw to specify the graph g.
Details
- GraphLinkEfficiency is also known as global efficiency or efficiency.
- Measures how tightly connected the graph g is in relation to its number of edges.
- GraphLinkEfficiency[g] uses the underlying simple graph of g. For a simple unweighted graph, GraphLinkEfficiency[g] is given by 1-MeanGraphDistance[g]/EdgeCount[g].
Examples
open all close allBasic Examples (2)
Find the link efficiency in the graph:
GraphLinkEfficiency[[image]]Graph link efficiency distribution of the Watts–Strogatz graph model:
𝒟 = GraphPropertyDistribution[GraphLinkEfficiency[g], gWattsStrogatzGraphDistribution[50, 0.1, 3]];Histogram[RandomVariate[𝒟, 1000]]Scope (4)
GraphLinkEfficiency works with undirected graphs:
GraphLinkEfficiency[[image]]GraphLinkEfficiency[[image]]Use rules to specify the graph:
GraphLinkEfficiency[{1 -> 2, 2 -> 3, 3 -> 1, 3 -> 4, 4 -> 5, 3 -> 5, 5 -> 2}]GraphLinkEfficiency works with large graphs:
g = GridGraph[{10, 10, 10, 10}];GraphLinkEfficiency[g]//TimingApplications (2)
Find how tightly connected the overground line of the London Underground is with respect to the number of lines between stations:
N[GraphLinkEfficiency[[image]]]Analyze the distribution of link efficiency in the Watts–Strogatz graph model:
𝒢 = WattsStrogatzGraphDistribution[50, 0.1, 3];RandomGraph[𝒢]Distribution of link efficiency:
𝒟 = GraphPropertyDistribution[GraphLinkEfficiency[g], g𝒢];Histogram[RandomVariate[𝒟, 1000]]NExpectation[x, x𝒟]Properties & Relations (5)
GraphLinkEfficiency is related to MeanGraphDistance:
g = KnightTourGraph[7, 4]GraphLinkEfficiency[g]1 - MeanGraphDistance[g] / EdgeCount[g]The GraphLinkEfficiency is always less than 1:
N[GraphLinkEfficiency[RandomGraph[{10, 20}]]]The GraphLinkEfficiency of a complete graph is close to 1:
g = CompleteGraph[9]N[GraphLinkEfficiency[g]]Test if a graph is complete using CompleteGraphQ:
CompleteGraphQ[g]The GraphLinkEfficiency of a path graph of length 1 is 0:
PathGraph[Range[2]]GraphLinkEfficiency[%]The GraphLinkEfficiency of a disconnected graph is -∞:
graphs = {Graph[{12, 34}], Graph[{12, 34}], Graph[{12, 23, 13}]}Table[GraphLinkEfficiency[g], {g, graphs}]Use ConnectedGraphQ to test for connected graphs:
Table[ConnectedGraphQ[g], {g, graphs}]See Also
Related Guides
Text
Wolfram Research (2012), GraphLinkEfficiency, Wolfram Language function, https://reference.wolfram.com/language/ref/GraphLinkEfficiency.html (updated 2015).
CMS
Wolfram Language. 2012. "GraphLinkEfficiency." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/GraphLinkEfficiency.html.
APA
Wolfram Language. (2012). GraphLinkEfficiency. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GraphLinkEfficiency.html
BibTeX
@misc{reference.wolfram_2026_graphlinkefficiency, author="Wolfram Research", title="{GraphLinkEfficiency}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/GraphLinkEfficiency.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_graphlinkefficiency, organization={Wolfram Research}, title={GraphLinkEfficiency}, year={2015}, url={https://reference.wolfram.com/language/ref/GraphLinkEfficiency.html}, note=[Accessed: 12-June-2026]}