added dijkstra compatability to vertex