distance reading from graph.txt added