dijkstra, now working - needs to change graph to work with weights