Everipedia Logo
Everipedia is now IQ.wiki - Join the IQ Brainlist and our Discord for early access to editing on the new platform and to participate in the beta testing.
Distance (graph theory)

Distance (graph theory)

In the mathematical field of graph theory, the distance between two vertices in a graph is the number of edges in a shortest path (also called a graph geodesic) connecting them. This is also known as the geodesic distance.[1] Notice that there may be more than one shortest path between two vertices.[2] If there is no path connecting the two vertices, i.e., if they belong to different connected components, then conventionally the distance is defined as infinite.

In the case of adirected graphthe distancebetween two verticesandis defined as the length of a shortest directed path fromtoconsisting of arcs, provided at least one such path exists.[3] Notice that, in contrast with the case of undirected graphs,does not necessarily coincide with, and it might be the case that one is defined while the other is not.

A metric space defined over a set of points in terms of distances in a graph defined over the set is called a graph metric. The vertex set (of an undirected graph) and the distance function form a metric space, if and only if the graph is connected.

The eccentricityof a vertexis the greatest distance betweenand any other vertex; in symbols that is. It can be thought of as how far a node is from the node most distant from it in the graph.
The radiusof a graph is the minimum eccentricity of any vertex or, in symbols,.
The diameterof a graph is the maximum eccentricity of any vertex in the graph. That is,is the greatest distance between any pair of vertices or, alternatively,. To find the diameter of a graph, first find theshortest pathbetween each pair ofvertices. The greatest length of any of these paths is the diameter of the graph.
A central vertex in a graph of radiusis one whose eccentricity is—that is, a vertex that achieves the radius or, equivalently, a vertexsuch that.
A peripheral vertex in a graph of diameteris one that is distancefrom some other vertex—that is, a vertex that achieves the diameter. Formally,is peripheral if.
A pseudo-peripheral vertexhas the property that for any vertex, ifis as far away fromas possible, thenis as far away fromas possible. Formally, a vertex u is pseudo-peripheral, if for each vertex v withholds.

The partition of a graph's vertices into subsets by their distances from a given starting vertex is called the level structure of the graph.

A graph such that for every pair of vertices there is a unique shortest path connecting them is called a geodetic graph. For example, all trees are geodetic.[4]

Algorithm for finding pseudo-peripheral vertices

Often peripheral sparse matrix algorithms need a starting vertex with a high eccentricity. A peripheral vertex would be perfect, but is often hard to calculate. In most circumstances a pseudo-peripheral vertex can be used. A pseudo-peripheral vertex can easily be found with the following algorithm:

  1. Choose a vertex .

  2. Among all the vertices that are as far from as possible, let be one with minimal degree.

  3. If then set and repeat with step 2, else is a pseudo-peripheral vertex.

See also

  • Distance matrix

  • Resistance distance

  • Betweenness centrality

  • Centrality

  • Closeness

  • Degree diameter problem for graphs and digraphs

  • Metric graph

References

[1]
Citation Linkwww.sciencedirect.comBouttier, Jérémie; Di Francesco,P.; Guitter, E. (July 2003). "Geodesic distance in planar graphs". Nuclear Physics B. 663 (3): 535–567. arXiv:cond-mat/0303272. doi:10.1016/S0550-3213(03)00355-9. Archived from the original on 2008-10-04. Retrieved 2008-04-23. By distance we mean here geodesic distance along the graph, namely the length of any shortest path between say two given faces
Sep 26, 2019, 9:07 AM
[2]
Citation Linkmathworld.wolfram.comWeisstein, Eric W. "Graph Geodesic". MathWorld--A Wolfram Web Resource. Wolfram Research. Retrieved 2008-04-23. The length of the graph geodesic between these points d(u,v) is called the graph distance between u and v
Sep 26, 2019, 9:07 AM
[3]
Citation Linkopenlibrary.orgF. Harary, Graph Theory, Addison-Wesley, 1969, p.199.
Sep 26, 2019, 9:07 AM
[4]
Citation Linkopenlibrary.orgØystein Ore, Theory of graphs [3rd ed., 1967], Colloquium Publications, American Mathematical Society, p. 104
Sep 26, 2019, 9:07 AM
[5]
Citation Linkweb.archive.org"Geodesic distance in planar graphs"
Sep 26, 2019, 9:07 AM
[6]
Citation Linkarxiv.orgcond-mat/0303272
Sep 26, 2019, 9:07 AM
[7]
Citation Linkdoi.org10.1016/S0550-3213(03)00355-9
Sep 26, 2019, 9:07 AM
[8]
Citation Linkwww.sciencedirect.comthe original
Sep 26, 2019, 9:07 AM
[9]
Citation Linkmathworld.wolfram.com"Graph Geodesic"
Sep 26, 2019, 9:07 AM
[10]
Citation Linken.wikipedia.orgThe original version of this page is from Wikipedia, you can edit the page right here on Everipedia.Text is available under the Creative Commons Attribution-ShareAlike License.Additional terms may apply.See everipedia.org/everipedia-termsfor further details.Images/media credited individually (click the icon for details).
Sep 26, 2019, 9:07 AM