Dijkstra working. Not duplicating odd vertex