Reorder parameters when creating new edge.