try all paths
This commit is contained in:
parent
5f188583b1
commit
4d480a5c62
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue