R: fix tests for new maxflow/mincut partition order