Expand description
Mode-tagged routing graph and Dijkstra router.
This is a small multi-modal shortest-path engine. Nodes are opaque
u64 identifiers; edges carry a traversal cost and an
rustsim_modes::AllowedModes permission mask. The router only
relaxes edges whose permission mask intersects the traveller’s
available mode set.
Structs§
- Modal
Edge - A directed, mode-tagged edge.
- Modal
Graph - Mode-tagged routing graph.
- Modal
Route - Resulting route from
shortest_path.
Enums§
- Modal
Graph Build Error - Errors returned when building a modal graph from transport link metadata.
Functions§
- only
- Permission helper for single-mode callers.
- shortest_
path - Compute the lowest-cost path from
starttogoalusing only edges that permit at least one mode inavailable_modes. ReturnsNoneif unreachable.
Type Aliases§
- NodeId
- Opaque node identifier in the routing graph.