Refactoring + MinCutProblem