finished Floyd-Warshell, Bellman-Ford and Hamiltonian Cycle