Bellman-Ford working for linear topologies!