Revising updateEdges