In the process of removing the explored set from Dijkstra, removing vertices from graph instead