Element 'Bellman-Ford algorithm'