input file for shortest path