COMP2230 Assignment, Finds quickest route through an undirected graph