A row of the canonical sparse key, with an empty default beyond its order.
Equations
Instances For
@[simp]
structure
Hex.GraphIso.Nauty.Sparse.Compare.Result
{n : Nat}
(A B : SparseGraph n)
(r : Int × Nat)
:
The comparison reports precisely the first differing row, or all rows when equal; its sign is the sparse row order at that position.
Instances For
theorem
Hex.GraphIso.Nauty.Sparse.testcanlab_result
{n : Nat}
(G H : SparseGraph n)
(R : Rows n)
(lab : Array Nat)
(l : Label n)
(hl : Label.ofArray? n lab = some l)
(hR : R.Prefix H n)
:
Compare.Result (G.relabel l.perm) H (testcanlab (Graph.ofGraph G) R lab)
The executed sparse comparison identifies the first unequal canonical row.