dijkstras algorithm works on this data