Dijkstra working, now tryingto filter for duplicate edges