def boykov_kolmogorov(G, s, t, capacity='capacity', residual=None, value_only=False, cutoff=None):
 R = boykov_kolmogorov_impl(G, s, t, capacity, residual, cutoff)
 R.graph['algorithm'] = 'boykov_kolmogorov'
 return R

def boykov_kolmogorov ( G , s , t , capacity = 'capacity' , residual = None , value_only = False , cutoff = None ) : R = boykov_kolmogorov_impl ( G , s , t , capacity , residual , cutoff ) R . graph [ 'algorithm' ] = 'boykov_kolmogorov' return R
find a maximum single-commodity flow using boykov-kolmogorov algorithm .