In a bipartite graph with parts of sizes and density , a neighbourhood of size at least can be chosen so that at least a proportion of its ordered pairs have at least common neighbours. Choose a random vertex on the other side, use the second moment of its degree, and penalize pairs with few common neighbours. This is a simple dependent random choice tool for controlling restricted sumsets.
For fixed , the missing common-neighbour count in a binomial random graph has expectation tending to zero. The Markov inequality therefore shows that every pair has a common neighbour with probability tending to one. On that event every graph distance is at most two, so the graph is connected and its graph diameter is at most two.
Edge contraction Created 2026-10-05 Updated 2026-10-14
An edge contraction merges the two endpoints of an existing edge. For a finite simple graph and , replace by a new vertex . Retain every edge with neither endpoint in , and join to every member of
Here and denote the original open graph neighbourhoods, and is the new graph neighbourhood. Remove the self-loop arising from and merge duplicate edges, so the result is again a simple graph. This is not deletion of , which keeps both original vertices.[ref]
The left example contracts in the cycle graph to give . Its endpoints have no common neighbours, so four edges become three. The right example contracts in the triangle in a graph with edges . Its endpoints have the single common neighbour , so the two edges become one edge : three edges become one.
For any such edge contraction, the exact counts are
The contracted edge accounts for one loss. Each common neighbour contributes exactly one further loss, since become a single edge . All other edges correspond one-to-one to surviving edges. In particular the new degree of a vertex is
These formulas depend on simplifying to a simple graph; a multigraph convention that retains duplicate edges has different counts. In the six-vertex branch set of a graph minor diagram, contracting loses one edge, contracting the resulting loses two because of its common neighbour , and contracting loses one. Hence its seven edges become the three edges of : .
An edge contraction can increase a degree of a vertex even while decreasing both total counts. For example, contracting in the tree with edges merges two vertices of degree of a vertex three into one of degree of a vertex four. This is the mechanism behind the distinction between a graph minor and a topological minor.
A fixed positive excess over the Turan theorem threshold forces logarithmic balanced complete multipartite graphs. There is an elementary induction using common neighbourhood from bipartite density: first obtain a logarithmic -partite subgraph from the induction hypothesis, and select disjoint transversal -cliques in it. Each such clique has at least common neighbours, by the union bound on non-neighbour sets. Apply the bipartite common-neighbour count to these cliques as left-side objects. Their selected union and a large common neighbourhood form the extra part.
Mantel theorem Created 2026-09-24 Updated 2026-10-14
The complete bipartite graph has vertex sets and , with every edge between and and none inside either part. Its six vertices support edges and no triangles in a graph: among any three vertices, two belong to the same independent set and have no joining edge.
Figure 1.
The sharp nine-edge triangle-free graph and the three triangles in a graph created by adding
. Details.
Add the single edge . Each is a common neighbour of its endpoints, producing the triangle in a graph . These are exactly the three new triangles in a graph, because every triangle in a graph must use the only edge inside a part. The new count is ten edges; nine was the last possible count without a triangle in a graph on six vertices.
In general, every simple graph with a finite set of vertices that is triangle-free has at most
edges. This is the case of Turán's theorem, with forbidden clique . Equality holds exactly for the balanced complete bipartite graph , up to graph isomorphism; empty parts are allowed for .[ref]
The floor function gives the exact integer bound. Splitting vertices into two independent sets of sizes and , and putting in every cross edge, gives
The count is largest when is an integer nearest . For it is ; for it is . Both equal . This proves attainability for every , including the empty graph.
A short proof of the upper bound uses degrees of vertices. In a triangle-free graph, the endpoints of an edge have disjoint vertex neighbourhoods: a common neighbour would complete a triangle in a graph. Thus . Summing over edges counts once for each of the edges incident to , giving
For , the Cauchy-Schwarz inequality and handshaking lemma yield
If , division gives ; is immediate. Since is an integer, apply the floor function. The case is immediate too. This proves the bound; the full equality characterization follows from Turán's theorem.
The useful reversal is that more than edges force a triangle in a graph, whatever their placement. A global count certifies a local pattern. The extremizer is bipartite, but a triangle-free graph need not be bipartite: a five-vertex graph cycle has five edges, below the bound of six. Historically, Willem Mantel posed the triangle-exclusion question in 1907.[ref]
If a fixed graph has chromatic number , every extremal -free graph on vertices has minimum degree of a graph . Use a high-minimum-degree multipartite stability subgraph : replacing any vertex by one adjacent to all but one class of preserves -freeness. Any supposed new copy of can replace the new vertex by an unused common neighbour in the omitted class. Extremality therefore gives the lower bound on every degree of a vertex; the Erdős-Stone theorem gives the upper bound on the average degree of a vertex.
Let count unordered vertex pairs with no common neighbour in a binomial random graph. Each other vertex provides the required pair of edges independently, with success probability . A fixed pair has no common neighbour with probability . Summing its indicators gives the displayed expectation.
Write for a balanced complete multipartite blow-up with classes of size . In the nonvacuous range , the answer is
We prove both bounds, including the quantitative lower bound.
First, suppose a bipartite graph with parts , of sizes , has at least edges. For any integer , counting pairs consisting of an -subset of and a common neighbour in gives
The inequality follows from discrete convexity: is nondecreasing, so balancing integer degrees of vertices minimizes their sum. Consequently some has
The product estimate uses for . This is a common neighbourhood from bipartite density bound.
We next prove by induction on that, for every fixed , a graph of order with minimum degree at least contains , for some and all sufficiently large . Impossible minimum-vertex degree parameters need no argument. For , take two copies of with adjacency given by . The preceding count with and , where , gives at least common neighbours. The selected vertices and their common neighbours are disjoint in , since a vertex is not its own neighbour. Selecting common neighbours gives .
For , the minimum degree hypothesis implies the induction hypothesis for , for example with excess . Thus contains with for a positive constant . Pair the vertices in its classes into disjoint transversal cliques , each of order . By the union bound, every has at least
common neighbours. Form an auxiliary bipartite graph between these cliques and the vertices, using common-neighbour incidence, and put . Choose small enough that and . The count above, with , gives cliques with at least simultaneous common neighbours. Their vertices form classes of size , and of those common neighbours form the last class. None of the common neighbours belongs to a selected clique, because that would require a loop. This proves the logarithmic clique blow-up from minimum degree assertion.
To pass from an edge count to minimum degree, put and . Repeatedly remove a vertex whose current degree of a vertex is below times the current order. If the process reaches order , its deleted edges and remaining edges give
Thus . In particular, for a fixed sufficiently small , the process cannot reach : the displayed inequality would fail. It stops earlier with a subgraph of order and minimum degree at least . The induction just proved supplies , hence a lower bound on . In particular, the guaranteed part size tends to infinity.
For the upper bound, choose a fixed with and take a binomial random graph . Its edge count has expectation and variance . The Chebyshev inequality shows that with probability tending to one. The expected number of labeled copies of is at most
For and , this tends to zero. The Markov inequality therefore shows that with positive probability both the required edge density holds and there is no such copy. This proves and completes the random obstruction to larger clique blow-ups argument.
There is a necessary qualification to the density parameter. If , the only eligible graph is the complete graph, and . If and , there are no eligible simple graphs; the universal assertion is vacuous for every , so the printed maximum has no finite value in that range.
Write for a balanced complete multipartite blow-up, with parts each containing vertices. Its occurrence is a subgraph condition, so additional internal edges in the host are harmless. The coefficient multiplying is essential: the PDF has , although it is lost in the converted TeX.
First prove the common neighbourhood from bipartite density estimate. Suppose a bipartite graph has parts of sizes and at least edges. For an integer , count incidences between -subsets of the first part and their common neighbours in the second. The discrete convexity of , with value zero for , gives
The convexity assertion follows directly from , which is increasing in ; smoothing two unequal degrees cannot increase the sum. In the binomial ratio every factor is at least , because . Consequently some satisfies
We prove the logarithmic clique blow-up from minimum degree by induction on . When , the degree hypothesis is impossible for a loopless graph, so any positive works vacuously. Assume . For , take two copies of the vertex set and join the copies of adjacent vertices. This bipartite graph has edge density of a bipartite graph at least . Choose
For sufficiently large , , and the estimate supplies at least common neighbours. Choose of them. The two selected sets are disjoint in the original graph, since a selected vertex cannot be adjacent to itself. They give .
For , put . The same minimum degree of a graph exceeds . By induction there is a with , where . Pair the vertices of its parts into disjoint transversal cliques . Each has at least
common neighbours, by bounding the union of the non-neighbour sets of its vertices. Set . Form the bipartite graph whose first part is these cliques, with joined to a vertex when that vertex is a common neighbour of all of . It has density at least . Choose
For large , and . The estimate gives selected cliques and at least common vertices. The selected cliques supply vertices in each of the original parts, and their common vertices supply the final part. No common vertex belongs to a selected clique, again because there are no loops. All required cross-part edges are present. Increasing to satisfy these finitely many inequalities completes the induction:
The Erdős-Stone theorem states that for a fixed graph with chromatic number ,
The lower bound comes from the Turán graph , which cannot contain an -chromatic subgraph. To obtain the upper bound from our minimum-degree result, suppose , where and . Repeatedly delete a vertex of degree less than times the current order, where , until no such vertex remains. If the remaining order is , then
Thus for large , with , and the remaining subgraph has minimum degree of a graph at least . It contains . A proper graph colouring of places its vertices in the parts once their size exceeds . This contradicts -freeness. Adjusting a fixed positive density margin absorbs the difference between and , proving the upper bound.
The six-vertex forbidden graph is the octahedral graph : the deleted matching in a graph gives its three independent pairs. Its chromatic number is three, so
The printed notation uses for the extremal-number argument while its defining condition forbids ; the answer uses that explicitly defined forbidden graph. For the strict finite inequality, take and add one edge inside its larger part, which has at least two vertices for . Every triangle in a graph then uses this added edge. However, contains two vertex-disjoint triangles in a graph, obtained by taking one vertex from each pair and then the other three. It therefore cannot occur in the constructed graph. Hence
If , every pair of vertices has a common neighbour, so every pair has graph distance at most two. In particular the graph is connected and its graph diameter is at most two. By the Markov inequality and part (ii),
We include disconnected graphs among those with diameter greater than two. Therefore
by diameter bound for a fixed-density binomial random graph.
Let be the indicator random variable that the unordered vertex pair has no common neighbour. For each of the other vertices, the two required edges are both present with probability . The edge pairs for different candidate neighbours are disjoint sets of independent random choices. Thus . Linearity of expectation yields
the missing common-neighbour count in a binomial random graph.
For a finite nonempty set , its additive energy is
where counts ordered representations. Since , Cauchy-Schwarz gives
Thus implies : a small doubling constant forces many additive quadruples.
A polynomial form of the Balog-Szemerédi-Gowers theorem gives the converse after passing to a subset. There are absolute constants such that if , , then some satisfies
The exponent and constants here need not be optimal.
Precisely, a graph form of the Balog-Szemerédi-Gowers theorem states the following. If are finite sets of size in an abelian group, has at least edges, and its restricted sumset
has size at most , then there are , with and
These are uniform absolute constants, valid for and .
To apply this theorem to additive energy, let and retain the sums with . The discarded sums contribute at most to the additive energy. Since , the retained pairs number at least . There are at most retained sums. They therefore define a bipartite graph of density at least with restricted sumset size at most . The graph theorem supplies large subsets with polynomially bounded .
For completeness, turn this cross-sumset bound into a doubling constant bound. The Ruzsa triangle inequality gives . If , the Plünnecke inequality, applied to the pair , gives . The minimal-growth proof below in Question 5 applies to arbitrary finite pairs and proves this particular expansion estimate as well. All losses are fixed powers of , proving the displayed converse after increasing .
The requested dense bipartite common-neighbour lemma is a dependent random choice assertion. Call an ordered pair in bad when it has fewer than common neighbours. Choose uniformly, and put . Then
For each bad pair, the probability that both endpoints lie in is its number of common neighbours divided by , which is less than . Thus the expected number of bad ordered pairs in is at most . Consequently
Choose a neighbourhood attaining at least this expectation. It has , and
Hence at least the proportion of its ordered pairs have at least two-edge connections. As usual these connections are counted by common neighbours, including a return walk for a diagonal ordered pair; assume , as the formula requires.
The relevance to the graph theorem is that many two-edge connections turn a sparse collection of permitted sums into additive control on a large vertex subset. On a connection , expresses a difference using two elements of the restricted sumset. The abundance of connections, followed by standard cleaning and further path counting, bounds the number of differences without throwing away most vertices. This is the role of dependent random choice in obtaining polynomial losses in the graph form of the Balog-Szemerédi-Gowers theorem.
The Erdős-Stone theorem says that, for a fixed graph with chromatic number ,
The lower bound comes from the balanced Turán graph with parts; the theorem supplies the matching asymptotic upper bound. Here and below, all forbidden graphs and blow-up parameters are fixed as .
First obtain an almost spanning, almost complete multipartite core. Put . We give the stability argument, rather than infer pointwise degree bounds by differentiating an asymptotic edge-count formula. Suppose first .
We need two elementary ingredients. First, positive homomorphism density of forces a fixed complete multipartite graph . To see this, perform vertex cloning in a graph, replacing one vertex by independent twins. Conditional on the images of the other vertices, its contribution to the homomorphism density changes from a number to ; Jensen inequality gives . Duplicating each original vertex therefore gives
A positive lower bound on the right supplies a positive proportion of all maps of the blow-up. Only maps fail to be injective, so for large at least one map is an embedding. Consequently a -free sequence has copies of . The clique removal lemma, proved in the next solution, then deletes edges to give a -free graph with .
Second, we prove the required stability for -free graphs by induction on . For such a graph is edgeless. In an -vertex -free graph , take a vertex of maximum vertex degree , put and , and note that is -free. The Turan theorem and the maximum-degree bound give
If , both nonnegative error terms are : and . The deficit in the bound for is likewise . Induction partitions into classes with a total of internal edges; adjoining gives an -class partition with the same property. Applying this to and restoring the removed edges gives such a partition of .
The number of possible crossing edges is . Since the actual crossing-edge count is within of this maximum, for every , and there are missing crossing edges. Choose so slowly that the number of vertices missing more than neighbours in other classes is . Delete those vertices and all internal edges. The remaining r-partite graph has vertices and every vertex has crossing vertex degree at least . The Turan theorem, or the size of a largest part, supplies the matching upper bound for its minimum vertex degree. Thus
This is a high-minimum-degree multipartite stability subgraph. The subgraph need not be spanning; deleting the exceptional vertices is essential. For , the spanning edgeless subgraph already proves the assertion.
Extremality forces the minimum degree. Choose . A proper -graph colouring embeds in , so every -free is also -free. By the Erdős-Stone theorem, its extremal edge count has the needed asymptotic size. The preceding proof supplies core classes of size in which every vertex misses only crossing neighbours, uniformly over the core.
Delete an arbitrary vertex from and introduce a new vertex adjacent precisely to with removed if necessary. The new graph is still -free. Indeed any new copy would use , all its neighbours in that copy would be in the specified core classes, and their set of common neighbours in has size . A vertex of this common neighbourhood outside the bounded vertex set of the copy replaces , producing an existing copy of in , a contradiction. For the new vertex is isolated and the same conclusion is immediate.
The replacement adds edges. Since has the maximum possible number of edges, . As was arbitrary and the minimum vertex degree is at most the average vertex degree,
This proves the minimum degree of an extremal forbidden-subgraph graph. The replacement argument avoids the invalid implication based solely on the asymptotic formula.
A colour-critical vertex also bounds the maximum degree. Suppose a vertex of has for some fixed . Since the core omits only vertices and all its classes have size , has at least neighbours in each . Otherwise, even counting every vertex in all other classes and outside the core would give too small a vertex degree.
Inside these neighbourhood sets, greedily choose a fixed number of vertices in each class. Every previously chosen vertex excludes only crossing nonneighbours, so each next candidate set still has positive linear size. This produces inside . A proper -graph colouring of embeds it in that complete multipartite graph; map to . All required incident edges exist, so this embeds , a contradiction. The case simply uses enough neighbours to embed the edgeless . Hence , and the average-degree lower bound completes the answer:
For the Petersen graph, each vertex has three neighbours, adjacent vertices have no common neighbour, and distinct nonadjacent vertices have exactly one common neighbour. The entries of count length-two walks, so diagonal entries are three, adjacent entries zero, and other off-diagonal entries one. Hence
The connected graph has the simple eigenvalue three with eigenvector . On its orthogonal complement , so the remaining eigenvalues satisfy and are one or minus two. If their multiplicities are , then and . Thus
Use natural logarithms. A graph minor is represented by disjoint nonempty branch sets of a graph minor, each inducing a connected graph, with an edge between every pair. The complete graph minor density threshold is defined over nonempty finite graphs by
It uses , half the average degree of a vertex; the nonempty convention excludes the vacuous density inequality for the empty graph. The PDF has the intended definition with a universal implication over ; the TeX transcription corrupts that definition.
Probabilistic lower bound. Put and take the binomial random graph . Its edge count has mean . The Chernoff bound implies
We show that the probability of a graph minor tends to zero. Ignore connectedness, which only enlarges the set of possible models, and assign each of the vertices one of branch labels or an unused label. There are at most assignments.
For any assignment with nonempty branch sets, at least of them have size at most . Between any two such small sets , the probability of no edge is
The absence or presence of edges between different pairs of branch sets depends on disjoint sets of random edges, so these events are independent. For this assignment the probability that all small pairs are adjacent is at most
The union bound over assignments is therefore at most
since the positive term is and the negative term has order . There is consequently a graph with no graph minor and with . Any constant having the universal forcing property must exceed this ratio. Since for large ,
The auxiliary density lemma contains a typo. Both the original PDF and the TeX print in the hint. This cannot imply its conclusion: for , an edgeless graph has only edgeless graph minors, and none satisfies . We use the intended dense minor with bounded order and high minimum degree lemma with the hypothesis for nonempty . The upper-bound argument below depends on that corrected supplied lemma; the literal printed hint is false.
Probabilistic upper bound and the constant seven. Suppose is nonempty and , and set
The corrected lemma gives a graph minor of order with . Since , we also have . For large , every vertex has at most nonneighbours, counting itself, because
the last inequality uses . Moreover any two distinct vertices have at least
common neighbours.
Choose disjoint random -sets from , uniformly, which is possible since for sufficiently large . For a set , let be the set of vertices having no neighbour in . For each vertex, the probability that all members of a uniformly sampled -set are its nonneighbours is at most , even when sampling without replacement. By linearity of expected value,
Call good if . The Markov inequality shows that a random set is bad with probability at most . Thus the expected number of bad sets among our samples is .
Conditional on a fixed good , the marginal distribution of is uniform among -sets outside . For there to be no edge between them, all its members must lie in . Hence
Here . Consequently the expected number of nonadjacent pairs of good sets is at most
since . Applying the Markov inequality to both counts shows that there exists a choice with fewer than bad sets and at most nonadjacent pairs of good sets. Select of the good sets; they still have at most missing adjacencies.
Make each selected set connected by fixing one of its vertices as a root and, for each of its other members, adding one unused common neighbour of that member and the root. This uses at most additional vertices. Then for each pair with no original edge, choose one vertex in each set and add an unused common neighbour to one of the sets. The added vertex is joined to that set and to the other set, so it preserves connectedness and repairs their adjacency. At most such repairs are required.
Throughout this process the total number of occupied vertices is at most
Since every pair has at least common neighbours, an unused choice always exists. The final sets are disjoint connected branch sets of a graph minor with every pair adjacent. They represent in , and hence in , by transitivity of graph minors. This random branch-set construction of a complete graph minor proves
The sharp linear threshold for a four-vertex complete minor. We prove by induction that a graph on vertices with at least edges has a graph minor. The case is itself. If some edge has at most one common neighbour, an edge contraction reduces the order by one and removes exactly edges. The contracted graph has at least edges, so induction applies.
Otherwise every edge is in at least two triangles in a graph. Choose a vertex incident with an edge. Each vertex has at least two neighbours of a vertex in , since these are the common neighbours of . Thus has minimum degree of a graph at least two. A longest path in this finite graph has an endpoint adjacent to an earlier nonconsecutive path vertex, and hence contains a cycle in a graph. Together with , this cycle in a graph gives a wheel graph as a subgraph. Divide its rim into three consecutive nonempty connected arcs; these arcs and form four pairwise adjacent branch sets of a graph minor. Therefore
With edges the answer is no. Take the join of graphs of and an independent set of vertices. It has edges. Among four disjoint putative branch sets of a graph minor, at most two can contain the two vertices of . Any connected branch set avoiding them is a singleton in the independent set. At least two such singleton sets would therefore have no edge between them. This excludes a graph minor for every and proves sharpness.
In a dense graph with many common neighbours for every pair of vertices, choose disjoint random small sets. A set is good if few vertices have no neighbour in it. The Markov inequality controls the number of bad sets, and random sampling makes almost every pair of good sets adjacent. Add unused common neighbours to connect each set and to repair the remaining missing adjacencies. If the number of used vertices stays below every common-neighbour count, this constructs disjoint branch sets of a graph minor representing a large complete graph.