Jgrapht Shortest Path Example, The algorithm is originally described in: Q.