theorem
Hex.GraphIso.Nauty.Sparse.distvals_correct
{n : Nat}
(G : SparseGraph n)
(root : Fin n)
:
Distances G root (distvals (Graph.ofGraph G) ↑root)
The executed packed-adjacency BFS computes shortest-path distances, including its early exit once all vertices have been discovered.
@[simp]
theorem
Hex.GraphIso.Nauty.Sparse.distvals_relabel
{n : Nat}
(G : SparseGraph n)
(p : Perm n)
(root v : Fin n)
:
Relabelling changes queue order but preserves all computed distances.