now loading graph to memory, using dijkstras algo to find shortest path.