Papers
Topics
Authors
Recent
Search
2000 character limit reached

Harary Polynomials: Graph Invariants

Updated 3 January 2026
  • 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 P\mathcal{P} (a class of simple graphs closed under isomorphism), the Harary polynomial χP(G;k)\chi_{\mathcal{P}}(G;k) counts the number of P\mathcal{P}-colorings of vertices of GG using at most kk colors, where each color class induces a subgraph in P\mathcal{P}. This construct yields a univariate polynomial in kk with integer coefficients, capturing both combinatorial and algebraic information about the graph relative to P\mathcal{P} (Makowsky, 27 Dec 2025, Herscovici et al., 2020).

1. Formal Definition and Polynomiality

Given a graph GG of order nn and a graph property P\mathcal{P}, a P\mathcal{P}-coloring with at most kk colors is a mapping c:V(G)→[k]c:V(G) \rightarrow [k] such that each color class c−1(j)c^{-1}(j) induces a subgraph G[c−1(j)]G[c^{-1}(j)] in P\mathcal{P}. The Harary polynomial for GG and P\mathcal{P} is defined by: χP(G;k)=∑i=0nhiP(G) k(i),\chi_{\mathcal{P}}(G; k) = \sum_{i=0}^n h_i^{\mathcal{P}}(G)\, k_{(i)}, where hiP(G)h_i^{\mathcal{P}}(G) is the number of partitions of V(G)V(G) into ii non-empty blocks such that each induced subgraph G[Vj]∈PG[V_j]\in\mathcal{P}, and k(i)=k(k−1)…(k−i+1)k_{(i)} = k(k-1)\dots(k-i+1) 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 P\mathcal{P}, 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 P\mathcal{P}. If P\mathcal{P} is MSOL-definable (i.e., expressible using Monadic Second Order Logic quantification over vertex sets), then χP(G;k)\chi_{\mathcal{P}}(G;k) itself becomes MSOL-definable as a function from graphs to Z[k]\mathbb{Z}[k] (Makowsky, 27 Dec 2025). In this framework, the iith coefficient is computed by counting the number of vertex partitions satisfying the predicate "each block induces a P\mathcal{P}-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 P\mathcal{P} (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 χP\chi^{\mathcal{P}} denote the Harary polynomial associated with property P\mathcal{P}. Two graphs G,HG,H are called P\mathcal{P}-mates if χP(G;k)=χP(H;k)\chi^{\mathcal{P}}(G;k) = \chi^{\mathcal{P}}(H;k) for all kk. The distinctive power ordering χP≤dpχQ\chi^{\mathcal{P}}\leq_{dp}\chi^{\mathcal{Q}} asserts that χQ\chi^{\mathcal{Q}} is at least as discriminative as χP\chi^{\mathcal{P}}; that is, every pair of Q\mathcal{Q}-mates are also P\mathcal{P}-mates (Makowsky, 27 Dec 2025).

A key structural theorem is that for any hereditary, nontrivial P\mathcal{P} with infinitely many nonisomorphic graphs of the same order, there exist infinitely many P\mathcal{P}-mates. For properties closed under disjoint union and connected components (Compton-Gessel classes), containment P⊆Q\mathcal{P}\subseteq\mathcal{Q} ensures χP≤dpχQ\chi^{\mathcal{P}}\leq_{dp}\chi^{\mathcal{Q}} due to multiplicativity and partition refinement. The comparability lattice of Harary polynomials thus reflects both algebraic and property-theoretic hierarchies.

Example Table: Key P\mathcal{P} and Their Harary Polynomials

Property P\mathcal{P} Harary Polynomial χP(G;k)\chi^{\mathcal{P}}(G;k) Distinctive-Power Note
Edgeless graphs Chromatic polynomial Standard case, infinite mates
Complete graphs Adjoint polynomial Incomparable with chromatic
All graphs k∣V(G)∣k^{|V(G)|} Coarsest, all graphs same order mate
Connected graphs Convex coloring polynomial Logic-definability restricted
mcct\mathrm{mcc}_t (component ≤t\leq t) Generalization of proper coloring Infinite mates for t≥2t\geq2

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 ddth coefficient as: cd(G)=∑H∈Λd(−1)c(H)2z(H)[#H⊆G],c_d(G) = \sum_{H \in \Lambda_d} (-1)^{c(H)} 2^{z(H)} [\# H \subseteq G], where Λd\Lambda_d is the set of elementary subgraphs (connected components are edges or cycles) of order dd.

For kk-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-dd 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 P\mathcal{P} corresponding to "all graphs," χP(G;k)\chi^{\mathcal{P}}(G;k) reduces to k∣V(G)∣k^{|V(G)|} and is completely non-discriminative; all graphs with the same number of vertices are mates. In contrast, for proper colorings (edgeless P\mathcal{P}), 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 (P\mathcal{P} 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 P\mathcal{P}.
  • 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).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (4)

Topic to Video (Beta)

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Harary Polynomials.