def preflow_push(G, s, t, capacity='capacity', residual=None, global_relabel_freq=1, value_only=False):
 R = preflow_push_impl(G, s, t, capacity, residual, global_relabel_freq, value_only)
 R.graph['algorithm'] = 'preflow_push'
 return R

def preflow_push ( G , s , t , capacity = 'capacity' , residual = None , global_relabel_freq = 1 , value_only = False ) : R = preflow_push_impl ( G , s , t , capacity , residual , global_relabel_freq , value_only ) R . graph [ 'algorithm' ] = 'preflow_push' return R
find a maximum single-commodity flow using the highest-label preflow-push algorithm .