distance From Uto V
Retrieves the shortest distance between two nodes in the graph.
This function uses the results of the Floyd-Warshall algorithm to determine the shortest path distance between the specified nodes.
Return
The shortest distance between the two nodes.
Parameters
u
The starting node.
v
The target node.
Throws
Illegal State Exception
If the Floyd-Warshall algorithm has not been executed before calling this function.