max Distance
Retrieves the maximum distance from the starting node to any other node after the most recent search operation (BFS, shortestPathsFrom).
If no search has been performed or a node cannot be reached, the function returns Double.POSITIVE_INFINITY.
Return
The maximum distance to any node.