ArticleslgStudy

science

Homomorphism density

Homomorphism density is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Homomorphism density rather than just read about it. In short: In the mathematical field of extremal graph theory, homomorphism density with respect to a graph H is a parameter t(H,−) that is associated to each graph G in the following manner: t(H,G):=|hom⁡(H,G)||V(G)||V(H)|. Above, hom⁡(H,G) is the set of graph homomorphisms, or adjacency preserving maps, from H to G.

Key takeaways

  • Homomorphism density belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Homomorphism density to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Homomorphism density from memory before moving on to harder problems.

Reference excerpt

In the mathematical field of extremal graph theory, homomorphism density with respect to a graph H is a parameter t(H,−) that is associated to each graph G in the following manner:

t(H,G):=|hom⁡(H,G)||V(G)||V(H)|. Above, hom⁡(H,G) is the set of graph homomorphisms, or adjacency preserving maps, from H to G. Density can also be interpreted as the probability that a map from the vertices of H to the vertices of G chosen uniformly at random is a graph homomorphism. There is a connection between homomorphism densities and subgraph densities, which is elaborated on below.

Examples The edge density of a graph G is given by t(K2,G). The number of walks with k−1 steps is given by hom⁡(Pk,G). hom⁡(Ck,G)=Tr⁡(Ak) where A is the adjacency matrix of G. The proportion of colorings using k colors that are proper is given by t(G,Kk). Other important properties such as the number of stable sets or the maximum cut can be expressed or estimated in terms of homomorphism numbers or densities.

Subgraph densities We define the (labeled) subgraph density of H in G to be

d(H,G):=# labeled copies of H in G|V(G)||V(H)|. Note that it might be slightly dubious to call this a density, as we are not quite dividing through by the total number of labeled subgraphs on |V(H)| vertices of G, but our definition is asymptotically equivalent and simpler to analyze for our purposes. Observe that any labeled copy of H in G corresponds to a homomorphism of H into G. However, not every homomorphism corresponds to a labeled copy − there are some degenerate cases, in which multiple vertices of H are sent to the same vertex of G. That said, the number of such degenerate homomorphisms is only O(n|V(H)|−1), so we have t(H,G)=d(H,G)+O(1/n). For instance, we see that for graphs with constant homomorphism density, the labeled subgraph density and homomorphism density are asymptotically equivalent. For H being a complete graph Km, the homomorphism density and subgraph density are in fact equal (for G without self-loops), as the edges of Km force all images under a graph homomorphism to be distinct.

Generalization to graphons The notion of homomorphism density can be generalized to the case where instead of a graph G, we have a graphon W,

t(H,W)=∫[0,1]|V(H)|∏ij∈E(H)W(xi,xj)∏i∈V(H)dxi Note that the integrand is a product that runs over the edges in the subgraph H, whereas the differential is a product running over the vertices in H. Intuitively, each vertex i in H is represented by the variable xi. For example, the triangle density in a graphon is given by

t(K3,W)=∫[0,1]3W(x,y)W(y,z)W(z,x)dxdydz. This definition of homomorphism density is indeed a generalization, because for every graph G and its associated step graphon WG, t(H,G)=t(H,WG). The definition can be further extended to all symmetric, measurable functions W. The following example demonstrates the benefit of this further generalization. Relative to the function W(x,y)=2cos⁡(2π(x−y)), the density of H in W is the number of Eulerian cycles in H. This notion is helpful in understanding asymptotic behavior of homomorphism densities of graphs which satisfy certain property, since a graphon is a limit of a sequence of graphs.

Inequalities Many results in extremal graph theory can be described by inequalities involving homomorphism densities associated to a graph. The following are a sequence of examples relating the density of triangles to the density of edges.

Turán's Theorem A classic example is Turán's Theorem, which states that if t(Kr,W)=0, then t(K2,W)≤(1−1r−1). A special case of this is Mantel's Theorem, which states that if t(K3,W)=0, then t(K2,W)≤1/2.

Goodman's Theorem

An extension of Mantel's Theorem provides an explicit lower bound on triangle densities in terms of edge densities.Theorem (Goodman). t(K3,G)≥t(K2,G)(2t(K2,G)−1).

Kruskal-Katona Theorem A converse inequality to Goodman's Theorem is a special case of Kruskal–Katona theorem, which states that t(K3,G)≤t(K2,G)3/2. It turns out that both of these inequalities are tight for specific edge densities. Proof. It is sufficient to prove this inequality for any graph G. Say G is a graph on n vertices, and {λi}i=1n are the eigenvalues of its adjacency matrix AG. By spectral graph theory, we know

hom⁡(K2,G)=t(K2,G)|V(G)|2=∑i=1nλi2, and hom⁡(K3,G)=t(K3,G)|V(G)|3=∑i=1nλi3. The conclusion then comes from the following inequality:

hom⁡(K3,G)=∑i=1nλi3≤(∑i=1nλi2)3/2=hom⁡(K2,G)3/2.

Description of triangle vs edge density A more complete description of the relationship between t(K3,G) and t(K2,G) was proven by Razborov. His work from 2008 completes the understanding of a homomorphism inequality problem, the description of D2,3, which is the region of feasible edge density, triangle density pairs in a graphon.D2,3={(t(K2,W),t(K3,W)):W is a graphon}⊆[0,1]2.The upper boundary of the region is tight and given by the Kruskal-Katona Theorem. The lower boundary is main result of work by Razborov in providing a complete description.

Useful tools

Cauchy-Schwarz One particularly useful inequality to analyze homomorphism densities is the Cauchy–Schwarz inequality. The effect of applying the Cauchy-Schwarz inequality is "folding" the graph over a line of symmetry to relate it to a smaller graph. This allows for the reduction of densities of large but symmetric graphs to that of smaller graphs. As an example, we prove that the cycle of length 4 is Sidorenko. If the vertices are labelled 1,2,3,4 in that order, the diagonal through vertices 1 and 3 is a line of symmetry. Folding over this line relates C4 to the complete bipartite graph K1,2. Mathematically, this is formalized as

t(C4,G)=∫1,2,3,4W(1,2)W(2,3)W(3,4)W(1,4)=∫1,3(∫2W(1,2)W(2,3))(∫4W(1,4)W(4,3))=∫1,3(∫2W(1,2)W(2,3))2≥(∫1,2,3W(1,2)W(2,3))2=t(K1,2,G)2 where we applied Cauchy-Schwarz to "fold" vertex 2 onto vertex 4. The same technique can be used to show t(K1,2,G)≥t(K2,G)2, which combined with the above verifies that C4 is a Sidorenko graph. The generalization Hölder's inequality can also be used in a similar manner to fold graphs multiple times with a single step. It is also possible to apply the more general form of Cauchy-Schwarz to fold graphs in the case that certain edges lie on the line of symmetry.

Lagrangian The Lagrangian can be useful in analyzing extremal problems. The quantity is defined to be

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Homomorphism density

Start with the simplest possible case. Write down what Homomorphism density claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Homomorphism density before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Homomorphism density ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Homomorphism density

In research
Homomorphism density appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Homomorphism density in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Homomorphism density is common in secondary-school and first-year university syllabi. It links to neighbouring topics Extremal graph theory, so understanding it makes those chapters shorter.
In everyday life
Look for Homomorphism density outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Homomorphism density” →

How to study Homomorphism density in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Homomorphism density means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Homomorphism density out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Homomorphism density in simple terms?

In the mathematical field of extremal graph theory, homomorphism density with respect to a graph H is a parameter t(H,−) that is associated to each graph G in the following manner: t(H,G):=|hom⁡(H,G)||V(G)||V(H)|. Above, hom⁡(H,G) is the set of graph homomorphisms, or adjacency preserving maps, fro…

Why does Homomorphism density matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Homomorphism density?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Homomorphism density.

Tags

  • Extremal graph theory

Keep exploring