Bellman Ford Equation