http://rosettacode.org/wiki/Dijkstra%27s_algorithm#J I posted above. It is a clean version of the jwiki page a posted last year. http://www.jsoftware.com/jwiki/ProblemSolving In particular, I separated the node names from the graph algorithm and wrote the algorithm as a verb.