Prints out shortest path of a directed graph.  It also reports negative cycles.