add Dijkstra, Bellman-Ford and Floyd