Graph reorder