try all paths

This commit is contained in:
Samuel Oberhofer
2022-06-08 19:00:39 +02:00
parent 5f188583b1
commit 4d480a5c62
+9 -1
View File
@@ -28,7 +28,15 @@ int main() {
{"Lyon", "Paris", 2}, {"Lyon", "Berlin", 2}};
ExtendedGraph g(vertices, edges);
// g.printGraph();
g.performDijkstraPath("Amsterdam", "Mailand");
g.performDijkstraPath("Amsterdam", "Moskau");
for (auto &i : vertices) {
for (auto &j : vertices) {
if (i != j) {
g.performDijkstraPath(i, j);
}
}
}
/* insertVertices */
// g.insertVertex("D");