Geodesic Distance Between Two Graph-Nodes Measure

A Geodesic Distance Between Two Graph-Nodes Measure is a length measure $\displaystyle{ f(v_x,v_y) }$ which is a graph-based distance measure that is based on the count of graph edges along the shortest path between the two graph nodes.
• 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. Notice that there may be more than one shortest path between two vertices. 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 a directed graph the distance $\displaystyle{ d(u,v) }$ between two vertices $\displaystyle{ u }$ and $\displaystyle{ v }$ is defined as the length of a shortest directed path from $\displaystyle{ u }$ to $\displaystyle{ v }$ consisting of arcs, provided at least one such path exists. [1] Notice that, in contrast with the case of undirected graphs, $\displaystyle{ d(u,v) }$ does not necessarily coincide with $\displaystyle{ d(v,u) }$ , and it might be the case that one is defined while the other is not.