Documentation

HexGraphIso.Nauty.Sparse.Compare

A row of the canonical sparse key, with an empty default beyond its order.

Equations
Instances For
    @[simp]
    theorem Hex.GraphIso.Nauty.Sparse.Compare.row_fin {n : Nat} (G : SparseGraph n) (i : Fin n) :
    row G ↑i = (G.nbrs i).toList

    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.Compare.stop {n : Nat} {A B : SparseGraph n} {i : Nat} {c : Ordering} (hi : i < n) (hp : ∀ (j : Nat), j < i → row A j = row B j) (hc : rowCmp (row A i) (row B i) = c) (hn : c ≠ Ordering.eq) :
      theorem Hex.GraphIso.Nauty.Sparse.Compare.finish {n : Nat} {A B : SparseGraph n} (hp : ∀ (j : Nat), j < n → row A j = row B j) :
      Result A B (0, n)
      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) :

      The executed sparse comparison identifies the first unequal canonical row.