TOPICS
Search

Graph Homomorphism Density


The graph homomorphism density of a finite simple graph H in a finite simple graph G with at least one graph vertex is

 t(H,G)=(hom(H,G))/(|V(G)|^(|V(H)|)),
(1)

where hom(H,G) counts all graph homomorphisms from H to G. It is the probability that a uniformly chosen function from V(H) to V(G) takes every graph edge of H to a graph edge of G. The function may identify vertices that are not adjacent.

For the complete graph K_2, t(K_2,G)=2|E(G)|/|V(G)|^2. This normalization is used in Sidorenko's conjecture.

The definition extends to a graphon, a symmetric measurable function W:[0,1]^2->[0,1], by

 t(H,W)=int_([0,1]^(V(H)))product_(uv in E(H))W(x_u,x_v)product_(v in V(H))dx_v.
(2)

For a common graph H, the sum of the two densities t(H,W) and t(H,1-W) is minimized by the constant graphon W=1/2.

Write p=t(K_2,W), n=|V(H)|, and let P_H be the chromatic polynomial of H. The polynomial

 Phi_H(p)=(1-p)^nP_H((1-p)^(-1))
(3)

is interpreted by continuous extension at p=1. For the balanced complete k-partite graphon T_k, which is zero on each of k equal parts and one between parts, t(H,T_k)=P_H(k)/k^n=Phi_H(1-1/k). The Goodman-type inequality is t(H,W)>=Phi_H(p) for every graphon with p>1-1/(chi(H)-1), where chi(H)>=2 is the chromatic number. For H=K_3, this is Goodman's classical bound t(K_3,W)>=p(2p-1) (Goodman 1959).

Kim (2026) proves this inequality for connected chordal graphs whose maximal cliques all have the same size at least 3, for every trivially perfect graph with an edge, and for the join of any complete graph and an odd cycle. More generally, a connected chordal graph with P_H(x)=product_(j=1)^(k)(x-j+1)^(b_j) satisfies the bound if b_1<=...<=b_k. The restriction on chordal graphs matters: a triangle with twenty leaves attached to each vertex is chordal but violates the inequality for an explicit graphon of edge density 13/25.

For a nonbipartite graph H, Kim proves that the inequality holds at every sufficiently high edge density iff the girth of H is odd. When the girth is odd, it holds whenever p>1-1/(72n^(12)). Equivalently, T_k minimizes t(H,W) at density 1-1/k for all sufficiently large integers k exactly when the girth of H is odd. The optimal uniform exponent in a threshold of the form 1-1/(Cn^gamma) lies between 4 and 12; the lower bound follows from a triangle attached along an edge of a complete bipartite graph.

Of the 117 nonbipartite graphs on at most six vertices without isolated vertices or isolated edges, Kim reports that exactly 94 satisfy the Goodman-type inequality, while exactly 100 have T_k optimal for every integer k>=chi(H). The classification uses exact sum-of-squares certificates and explicit counterexamples. The author attributes substantial proofs and the finite classification to AI systems, reports checking and revising the results, and supplies Lean formalizations. The full odd-cycle density range used for the clique-join result is supplied in the accompanying formal development.


See also

Complete Graph, Graph Homomorphism, Sidorenko Graph, Sidorenko Incidence Graph, Sidorenko's Conjecture

Explore with Wolfram|Alpha

References

Goodman, A. W. "On Sets of Acquaintances and Strangers at Any Party." Amer. Math. Monthly 66, 778-783, 1959. https://doi.org/10.1080/00029890.1959.11989408.Kim, T. "Goodman-Type Lower Bounds for Graph Homomorphism Densities." 13 Nov 2026. https://arxiv.org/abs/2611.17885.Lovász, L. Large Networks and Graph Limits. Providence, RI: Amer. Math. Soc., 2012. https://doi.org/10.1090/coll/060.

Cite this as:

Weisstein, Eric W. "Graph Homomorphism Density." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/GraphHomomorphismDensity.html

Subject classifications