try all paths
This commit is contained in:
@@ -28,7 +28,15 @@ int main() {
|
|||||||
{"Lyon", "Paris", 2}, {"Lyon", "Berlin", 2}};
|
{"Lyon", "Paris", 2}, {"Lyon", "Berlin", 2}};
|
||||||
ExtendedGraph g(vertices, edges);
|
ExtendedGraph g(vertices, edges);
|
||||||
// g.printGraph();
|
// 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 */
|
/* insertVertices */
|
||||||
// g.insertVertex("D");
|
// g.insertVertex("D");
|
||||||
|
|||||||
Reference in New Issue
Block a user