Classes for testing Bellman-Ford