fixed printing node index problem

When prating nodes into file shortest_paths_all.txt, update to real
nodeIDs by adding 1. Now, it’s consistent with file shortest_paths.txt