Added check for equal node in CreateUpdatedEdge