Remove edge map and second node from edges