implement min-st-cut interface similar to multicut/lifted multucut
implement min-st-cut interface similar to multicut/lifted multucut