Djikstra and Floyd