I am wondering about how to compute the distance between a given pair of nodes, say nodes "i" and "j" This is a minimal example for say nodes 2 and 12 from a Random Regular Graph with 100 nodes and connectivity 3
julia> using LightGraphs
julia> L = random_regular_graph(100, 3)
julia> paths= dijkstra_shortest_paths(L, 2)
julia> distances = paths.dists
julia> d = distances[12]
The problem with this approach is that I have to calculate the distances between all the nodes and my node 2 in order to know the distance between my two nodes of interest