Harary Polynomials: Graph Invariants
- Harary polynomials are univariate graph invariants that count conditional colorings by partitioning vertices under a specified graph property.
- They extend the chromatic polynomial by incorporating falling factorials and Stirling number arguments to encode detailed partition statistics.
- Their MSOL-definability and distinctive mate structures provide actionable insights into graph classification and the computational complexity of invariant evaluation.
Harary polynomials are a broad class of graph polynomials that generalize the chromatic polynomial by parameterizing conditional colorings with respect to arbitrary graph properties. Formally, for a graph property (a class of simple graphs closed under isomorphism), the Harary polynomial counts the number of -colorings of vertices of using at most colors, where each color class induces a subgraph in . This construct yields a univariate polynomial in with integer coefficients, capturing both combinatorial and algebraic information about the graph relative to (Makowsky, 27 Dec 2025, Herscovici et al., 2020).
1. Formal Definition and Polynomiality
Given a graph of order and a graph property , a -coloring with at most colors is a mapping such that each color class induces a subgraph in . The Harary polynomial for and is defined by: where is the number of partitions of into non-empty blocks such that each induced subgraph , and denotes the falling factorial. The polynomiality is established constructively using Stirling numbers arguments (Makowsky, 27 Dec 2025). The coefficients encode fine partition statistics specific to , distinguishing Harary polynomials from traditional chromatic polynomials.
2. Logical Definability and Model-Theoretic Aspects
The MSOL-definability of Harary polynomials hinges on the logical expressibility of the property . If is MSOL-definable (i.e., expressible using Monadic Second Order Logic quantification over vertex sets), then itself becomes MSOL-definable as a function from graphs to (Makowsky, 27 Dec 2025). In this framework, the th coefficient is computed by counting the number of vertex partitions satisfying the predicate "each block induces a -subgraph." This logical perspective ties the complexity and computability of Harary polynomials to foundational results such as Courcelle’s theorem and the finite rank of connection matrices.
However, many nontrivial (e.g., hereditary, monotone, or minor-closed properties excluding certain graphs) are not edge-elimination invariants and their Harary polynomials are not MSOL-g-definable; only trivial cases (e.g., all graphs, edgeless graphs) admit such definitions (Herscovici et al., 2020).
3. Distinctive Power, Mates, and Comparability
Let denote the Harary polynomial associated with property . Two graphs are called -mates if for all . The distinctive power ordering asserts that is at least as discriminative as ; that is, every pair of -mates are also -mates (Makowsky, 27 Dec 2025).
A key structural theorem is that for any hereditary, nontrivial with infinitely many nonisomorphic graphs of the same order, there exist infinitely many -mates. For properties closed under disjoint union and connected components (Compton-Gessel classes), containment ensures due to multiplicativity and partition refinement. The comparability lattice of Harary polynomials thus reflects both algebraic and property-theoretic hierarchies.
Example Table: Key and Their Harary Polynomials
| Property | Harary Polynomial | Distinctive-Power Note |
|---|---|---|
| Edgeless graphs | Chromatic polynomial | Standard case, infinite mates |
| Complete graphs | Adjoint polynomial | Incomparable with chromatic |
| All graphs | Coarsest, all graphs same order mate | |
| Connected graphs | Convex coloring polynomial | Logic-definability restricted |
| (component ) | Generalization of proper coloring | Infinite mates for |
4. Classical and Generalized Harary-Sachs Theorem
The Harary polynomial framework is intimately related to the Harary-Sachs theorem, which calculates coefficients of the characteristic polynomial of adjacency matrices in terms of elementary subgraphs (Clark et al., 2018, Clark et al., 2021). The classical theorem expresses the th coefficient as: where is the set of elementary subgraphs (connected components are edges or cycles) of order .
For -uniform hypergraphs, the generalized Harary-Sachs theorem replaces elementary subgraphs by Veblen infragraphs (multi-hypergraphs with degree constraints), weighting each by arborescence counts and Euler rootings, and summing over possible embeddings. This expansion underlies the computation of codegree- coefficients in hypergraph spectra and, by analogy, extends Harary polynomials beyond simple graph properties into tensor spectral graph theory (Clark et al., 2021).
5. Spectrum, Mates, and Computation
Harary polynomials possess rich algebraic spectra and mate structures. For instance, for corresponding to "all graphs," reduces to and is completely non-discriminative; all graphs with the same number of vertices are mates. In contrast, for proper colorings (edgeless ), the chromatic polynomial distinguishes coloring-critical structures but is still not injection for trees of equal order (Makowsky, 27 Dec 2025).
Harary polynomials are not, in general, edge-elimination invariants except for the trivial case ( is edgeless). Their evaluation complexity mirrors that of chromatic polynomials, typically #P-hard, except in restricted graph classes where Courcelle’s results provide tractability via logical definability (Herscovici et al., 2020).
6. Open Problems and Classification
Current research emphasizes the classification of Harary polynomial invariants, their logical and computational boundaries, and the structure of the distinctive power lattice. Open problems include:
- The existence and optimality of complete or almost-complete Harary polynomials for nontrivial .
- Analytic properties such as root location, real-rootedness and log-concavity.
- The interaction between MSOL-definability and Tutte-like algebraic recursions.
- Algorithms for evaluation and recognition of Harary polynomial equivalence, especially under mate relations.
The study of Harary polynomials thus subsumes and unifies diverse areas—algebraic graph invariants, model theory, combinatorial enumeration, and spectral methods—while posing rich challenges for future research (Makowsky, 27 Dec 2025, Herscovici et al., 2020, Clark et al., 2021).