connected_threshold.update()#after each call to connectedcomps we update the associated threshold with a given strategy to optimise the next iteration's success
success=successorsuccess_temp
#2 other heuristics if first one failed
#if not(success):
#...
returnsuccess,len(instance.c_cap)-start
returnsuccess,len(instance.c_cap)-start#second variable gives the number of cuts found during add_c_cap