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. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm