Changed listOfEdges to hold Edges not Edge pointers