Canonical rows and scratch storage carried by the shared search. Scratch is independent of the partition nest restored during backtracking.
- scratch : Scratch
Instances For
@[instance_reducible]
def
Hex.GraphIso.Nauty.Sparse.Storage.update
{n : Nat}
(g : Graph n)
(s : Storage n)
(lab : Array Nat)
(same : Nat)
:
Storage n
Equations
- Hex.GraphIso.Nauty.Sparse.Storage.update g s lab same = { toRows := Hex.GraphIso.Nauty.Sparse.updatecan g s.toRows lab same, scratch := s.scratch }
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[reducible, inline]
Equations
Instances For
def
Hex.GraphIso.Nauty.Sparse.classify
{n : Nat}
(g : Graph n)
(level numcells : Nat)
(st : State n)
:
nauty's five classifications, using sparse automorphism and canonical row tests. Every other transition is shared with dense nauty.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[instance_reducible]
Equations
- One or more equations did not get rendered due to their size.
def
Hex.GraphIso.Nauty.Sparse.run
{n : Nat}
(g : Graph n)
(lab : Array Nat)
(ends : List Nat)
:
State n
Equations
- Hex.GraphIso.Nauty.Sparse.run g lab ends = Hex.GraphIso.Nauty.Sparse.finish g (Hex.GraphIso.Nauty.Sparse.runState g lab ends).snd
Instances For
@[specialize #[]]
def
Hex.GraphIso.Nauty.Sparse.initialPartitionWith
{α : Type u_1}
(n k : Nat)
(colors : Array α)
(color : α → Nat)
:
Stable colour buckets in O(n + k) time. Valid colourings use every
bucket; the empty graph has no buckets.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Hex.GraphIso.Nauty.Sparse.initialPartition n k colors = Hex.GraphIso.Nauty.Sparse.initialPartitionWith n k colors id