Revert the edge direction.