Documentation

HexGraphIso.Families

The path 0 - 1 - ⋯ - (n-1).

Equations
Instances For

    The cycle on n vertices in their natural order. For n ≤ 2 this degenerates to the path.

    Equations
    Instances For

      The circulant graph: i and j are adjacent when their difference modulo n lies in the connection set (in either direction).

      Equations
      Instances For

        The generalized Petersen graph G(p, q) on 2p vertices: outer vertices 0..p-1 form a p-cycle, inner vertex p+i is adjacent to p+((i+q) mod p), and the spoke edges join i to p+i. G(5, 2) is the Petersen graph and G(5, 1) the pentagonal prism.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          The complete multipartite graph over the given part sizes: vertices are numbered part by part in the given order, and two vertices are adjacent exactly when they lie in different parts.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            The complete bipartite graph K_{a,b}: vertices 0..a-1 on the left, a..a+b-1 on the right.

            Equations
            Instances For
              def Hex.GraphIso.Families.copies (t : Nat) {m : Nat} (G : Graph m) :
              Graph (t * m)

              t disjoint copies of a graph on m vertices: copy c occupies vertices c*m..(c+1)*m-1 in the original order.

              Equations
              Instances For

                The a × b grid: vertex (r, c) is numbered r*b + c, and vertices are adjacent when they differ by one in exactly one coordinate.

                Equations
                Instances For

                  The hypercube of dimension d: vertices are the 2^d bitstrings, numbered by their value, adjacent when they differ in one bit.

                  Equations
                  Instances For

                    The binomial coefficient, by the multiplicative formula: the running product after i steps is choose n i, and multiplying it by n - i before dividing by i + 1 keeps every division exact. choose lives in Mathlib and this library is Mathlib-free.

                    Equations
                    Instances For

                      The r-element subset of Fin m with colexicographic rank v: the standard combinatorial number system, choosing the largest possible top element greedily. Elements are returned in descending order.

                      Equations
                      Instances For
                        Equations
                        Instances For

                          The Johnson graph J(m, r) on the choose m r subsets of size r in colexicographic order, adjacent when the subsets share r - 1 elements.

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For

                            The Kneser graph K(m, r) on the choose m r subsets of size r in colexicographic order, adjacent when the subsets are disjoint.

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For

                              The triangular graph T(m) = J(m, 2).

                              Equations
                              Instances For

                                The Latin-square graph L₃(m) of the cyclic Latin square (r, c) ↦ (r + c) mod m: vertices are the cells numbered r * m + c, adjacent when they share a row, a column, or a symbol. For m ≥ 2 this is strongly regular with parameters (m², 3(m−1), m, 6). At m = 5 its parameters (25, 12, 5, 6) are those of the Paley graph on 25 vertices, but the two graphs are not isomorphic. That is the standard example of two non-isomorphic strongly regular graphs with the same parameters.

                                Equations
                                Instances For

                                  The Paley graph on q vertices: i and j are adjacent when their difference is a nonzero quadratic residue modulo q, symmetrized. The intended domain is a prime q ≡ 1 (mod 4), where the residue relation is already symmetric.

                                  Equations
                                  Instances For