mincut half implemented