Expand description
Shortest paths: single-source Dijkstra and Bellman-Ford, checked all-pairs shortest paths, and reachability over the algebra spine’s semiring closure.
Structs§
- Path
Result - Single-source distances and predecessor forest.
- Shortest
Path - One shortest path between two nodes, with a verifiable predecessor-tree certificate for the source.
Functions§
- all_
pairs_ shortest_ paths - Checked all-pairs shortest paths.
- bellman_
ford - Bellman-Ford over
i64weights. Returns the result and whether a negative-weight cycle is reachable from the source. - dijkstra
- Dijkstra’s algorithm over non-negative
u64weights. - reachability
- Reachability as the boolean closure of the adjacency matrix. Thin wrapper.
- shortest_
path - Return one shortest path and its reusable certificate.