Changes for in the grap assembly & Dijkstra class to handle loops