Updated code and documentation for min_cut