output format of dijkstra module modified.