Expand description
Verifiable certificates for MST and shortest-path results.
Every certificate-producing algorithm ships a verifier that re-checks the
result from scratch and never trusts the producer. verify_mst checks edge
count, acyclicity, spanning connectivity, the recorded total weight, and
optimality (the cycle property). verify_shortest_paths checks predecessor
consistency and edge relaxation.
Structs§
- MstCertificate
- A compact, checkable MST witness.
- Shortest
Path Certificate - A shortest-path tree witness from a single source.
- Spanning
Tree - A spanning tree result: tree edge ids (ascending) and the total weight.
Functions§
- verify_
mst - Verify that
certdescribes a minimum spanning tree ofgraph. - verify_
shortest_ paths - Verify that
certis a valid shortest-path tree ofgraphfrom its source.