def bellman_ford(G, source, weight='weight'):
 _warnings.warn('Function bellman_ford() is deprecated, use function bellman_ford_predecessor_and_distance() instead.', DeprecationWarning)
 return bellman_ford_predecessor_and_distance(G, source, weight=weight)

def bellman_ford ( G , source , weight = 'weight' ) : _warnings . warn ( 'Function bellman_ford() is deprecated, use function bellman_ford_predecessor_and_distance() instead.' , DeprecationWarning ) return bellman_ford_predecessor_and_distance ( G , source , weight = weight )
deprecated: has been replaced by function bellman_ford_predecessor_and_distance() .