TOC Toolkit API - v0.1.0
    Preparing search index...

    toc-toolkit/isomorphism

    Decides whether two vertex-coloured directed graphs are equal up to a renaming of their vertices, and computes the canonical form of a graph. The procedure packages encode grammars and machines as these graphs to compare them. Every vertex is a dense integer, so the package sees no grammar, state or symbol.

    • Canonical labelling. Computes the minimum code over a deterministic individualization and refinement search tree. Two graphs have equal codes if and only if they are isomorphic. The result holds the code hash and the automorphisms found. (canonicalForm, sameCanonicalForm)
    • Partition refinement. Splits the cells of an ordered partition with a SplitterQueue from structures until the colouring is equitable. The search uses it at every node. (canonicalForm, findIsomorphism)
    • Isomorphism search. Finds a renaming between two graphs by backtracking over colour buckets and connected vertex order, after screening by sorted colours. (findIsomorphism)
    • Renaming verification. Replays a renaming on both graphs and checks the bijection, every colour and every arc, so the search result is evidence and not trusted. (verifyRenaming)
    • Graph validation. Reports invalid colours, out-of-range arcs and duplicate arcs in a draft. (checkGraph)
    • Canonical dump. Prints a canonical form as stable text. (dumpCanonicalForm)
    • Coloured graph. A checked graph of integer colours and unique arcs. (ColoredGraph, ColoredGraphDraft, Arc, VertexIndex)
    • Canonical form. The canonical code, its hash and the automorphism generators. (CanonicalForm, CanonicalHash, CANONICAL_FORM)
    • Renaming. A vertex bijection between two graphs. (Renaming)
    • Enumerations. Name the closed sets of strings that the types and the wire data of the package use. (GraphIssueCode, GraphPartKind)