Removed Comparable and resorted to the methods inside Dijkstra to get the minimum from a list/set of vertices