BellmanFord, Dijkstra, BFS, DFS with tests