commit before reordering nodes of edge