![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Path-routing primitives over an abstract weighted graph, used by Slice BC's profile-path picker. More...
#include <QString>#include <QVector>Go to the source code of this file.
Classes | |
| struct | ProfileRouter::Edge |
| A single directed weighted edge in the routing graph. More... | |
| struct | ProfileRouter::Graph |
| The input to ProfileRouter — nodes are 0..nodeCount-1, edges are directed by default and reinterpreted as undirected via Options. More... | |
| struct | ProfileRouter::Path |
A single candidate path: ordered node sequence (length N+1) of engine node indices, the user-supplied link IDs joining them (length N — pulled from Edge::linkId at emit time), and the summed weight along the sequence. More... | |
| struct | ProfileRouter::Options |
| Tunables for a single routing query. More... | |
| struct | ProfileRouter::Result |
What the router returns. Empty paths plus non-empty error means an outright failure (e.g. invalid endpoints); empty paths plus empty error means no path was found (disconnected components). More... | |
Namespaces | |
| namespace | ProfileRouter |
Functions | |
| Result | ProfileRouter::enumerateSimplePaths (const Graph &g, int startNode, int endNode, const Options &opts={}) |
Enumerates every simple (no-repeated-node) path between startNode and endNode using DFS with backtracking. | |
| Result | ProfileRouter::kShortestPaths (const Graph &g, int startNode, int endNode, const Options &opts={}) |
Yen's k-shortest simple paths from startNode to endNode. | |
| Result | ProfileRouter::kShortestPathsThrough (const Graph &g, const QVector< int > &waypoints, const Options &opts={}) |
| Routes through a sequence of waypoints (start → w1 → … → end). | |
Path-routing primitives over an abstract weighted graph, used by Slice BC's profile-path picker.
The router operates on a generic Graph struct so it can be unit- tested without a full SWMMModelLayer. Callers (typically MapToolSelectProfile) build a Graph from the model and pick one of two strategies:
Waypoint chaining is supported via kShortestPathsThrough.