Chromatic number Created 2026-09-24 Updated 2026-10-14
For a nonempty finite simple graph , the chromatic number is the least positive integer for which has a proper vertex graph coloring with at most colours. To establish an exact chromatic number, give a colouring using that many colours and explain why fewer cannot suffice. A colouring alone gives only an upper bound.[ref]
Mathematics for Computer Science by Eric Lehman and others. Lehman, Leighton and Meyer, Mathematics for Computer Science, Definition 11.7.1
These small graphs show why the chromatic number measures more than the presence of triangles in a graph:
- The cycle graph , also the complete graph , has chromatic number three. Every pair of vertices is adjacent, so three distinct colours are necessary and sufficient.
- The cycle graph has chromatic number two. Around the graph cycle, the assignment is proper, and a single colour would violate every edge.
- The cycle graph has chromatic number three. With two colours, alternation around the graph cycle would force the first and fifth vertices to have the same colour despite their joining edge. The assignment works. Thus a triangle-free graph can still require more than two colours.
- The complete graph has chromatic number : all vertices are pairwise adjacent, so each must have its own colour.[ref]
For a cycle graph of even length, alternating two colours closes consistently; for an odd cycle, it does not, and a third colour on the final vertex suffices. More generally, the two-colourability criterion for bipartite graphs says that exactly when is a bipartite graph, and the odd-cycle characterization of bipartite graphs identifies the obstruction as an odd cycle. A nonempty graph with no edges has chromatic number one; a bipartite graph with at least one edge has chromatic number exactly two.
In the pairwise-conflict scheduling model of graph coloring, is the least number of interchangeable slots needed. This turns a drawing into an optimization question: how many groups of compatible activities are unavoidable? Greedy coloring constructs a valid grouping quickly, but its number of colours can exceed the chromatic number.
Edge-disjoint triangles 2026-10-06
A family of triangles in a graph is edge-disjoint if no edge belongs to two members. Any deletion of edges producing a triangle-free graph must remove at least one distinct edge for each member. The triangles in a graph may share vertices.
Grötzsch graph 2026-10-14
The Grötzsch graph is the Mycielskian of the five-vertex cycle graph. Take original edges , with indices interpreted modulo five; add and for every . There are eleven vertices and twenty edges: five original, ten between originals and Mycielski shadow vertices, and five from the Mycielski apex.
Give colours , give each the colour of , and give colour 4. This is a proper vertex colouring. The Mycielskian chromatic increase proves that three colours are impossible, so the chromatic number is exactly four. The Mycielskian triangle preservation proves that this is a triangle-free graph. In particular its clique number is only two, even though its chromatic number is four.
The Mycielski apex has an independent set as its graph neighbourhood, yet all three old colours are needed there in any three-colour proper vertex colouring of the subgraph obtained by deleting it. Thus a locally easy group of mutually nonadjacent neighbours can carry globally incompatible colour requirements. Absence of triangles in a graph alone cannot bound the chromatic number.
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.
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 mostedges. 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]
Graph Theory by Reinhard Diestel. third electronic edition (2005), §7.1, printed p. 165, Theorem 7.1.1 and the definition of Turán graphs, specialized to the forbidden graph K3
The floor function gives the exact integer bound. Splitting vertices into two independent sets of sizes and , and putting in every cross edge, givesThe 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 , givingFor , the Cauchy-Schwarz inequality and handshaking lemma yieldIf , 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]
Wie weet wie Willem Wijthoff was? by Robbert Fokkink. Robbert Fokkink, Wie weet wie Willem Wijthoff was?, Nieuw Archief voor Wiskunde 5/17(4), December 2016, printed p. 279, Wythoffs bewijs van de stelling van Mantel: attribution of problem 28 in 1907
Mycielskian Created 2026-10-14 Updated 2026-10-14
The Mycielski construction replaces a graph with a graph having one shadow vertex for each original vertex and one further vertex adjacent to every shadow. It satisfiesand preserves triangle-freeness. Iterating it from the five-cycle gives triangle-free graphs of arbitrarily large chromatic number.
Here is a finite simple graph with at least one vertex; it need not have an edge. The Mycielskian separates two ways of needing many colours: a large clique forces distinct colours immediately, but a triangle-free graph can impose incompatible choices through its whole pattern of graph adjacency. The Mycielski construction increases that global constraint while preserving the absence of triangles in a graph.
Write the vertex set of as , with . Keep these vertices, add distinct Mycielski shadow vertices , and add a Mycielski apex . The vertex set and complete list of edges areThere are no other edges: the Mycielski shadow vertices form an independent set, has no original vertex as a neighbour, and is not adjacent to . Each Mycielski shadow vertex copies its original vertex's graph neighbourhood within the original vertex set, not its position in the drawing. This is the construction in the inspected research paper.[ref]
For original vertices and original edges, direct counting gives vertices and edges. The original vertices induce a copy of , so no original graph adjacency is lost. A drawing crossing is not an extra vertex.
Start with the complete graph , whose only edge is , abbreviating . Its Mycielskian has exactly the edges . Reading them as gives the cycle graph . A proper vertex colouring gives colour 1, colour 2, and colour 3. Two colours cannot close an odd cycle, so its chromatic number is exactly three.
Mycielskian triangle preservation 2026-10-14
A finite simple graph is a triangle-free graph if and only if its Mycielskian is a triangle-free graph. No triangle in a graph can contain the Mycielski apex, whose neighbours are an independent set, or two Mycielski shadow vertices. A triangle in a graph containing one shadow and two originals requires all three original edges , hence an original triangle in a graph. Conversely every original triangle in a graph remains. In fact each original triangle in a graph gives four in : itself and the three choices of replacing one of its vertices by its shadow. Thus triangle-freeness is preserved, but a positive triangle count is multiplied by four.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 11 5 Solution Created 2026-10-03 Updated 2026-10-14
Replace by if necessary; this only weakens the hypothesis. We prove the result for finite graphs using a random proper partial graph coloring, then a deterministic completion. All constants below may depend on this fixed positive .
First record the extension of a partial colouring by neighbour-colour savings. If a partial colouring uses colours from a palette of size , let be the number of coloured neighbours of , their number of distinct colours, and the neighbour-colour saving. There are available colours and uncoloured neighbours. Thusat every vertex suffices for greedy completion: each subsequently coloured neighbour removes at most one available colour while reducing the uncoloured-neighbour count by one.
Call high-degree if . Its graph neighbourhood has at leastnonadjacent pairs for all sufficiently large . Assign independently to every vertex one of tentative colours. Erase the colour of every vertex having a neighbour with the same tentative colour. The remaining colouring is proper; erasure is based on the original assignments and is not an iterative cascade.
For each , define as the number of tentative colours assigned to at least one nonadjacent pair in its graph neighbourhood. Let count those same colours for which at least one neighbour of loses its colour. Then counts repeated colours with no erased occurrence among the neighbours, so .
For a particular nonadjacent pair , consider the event that both receive one colour and no vertex of receives that colour. This guarantees that its exactly two occurrences in both survive. Its probability is at leastHere , , and for . Different pairs cannot be counted by the same colour in this event, since each event specifies exactly two occurrences in the graph neighbourhood. Thereforefor every high-degree vertex. This is the expected colour savings from sparse neighbourhoods.
We need simultaneous concentration, not just a positive expectation. A single tentative-colour change can affect or only in the old and new colour categories, so each function changes by at most two. A witness for fixes two vertices for each of colours. A witness for fixes such a nonadjacent pair and an erased neighbour together with a same-coloured adjacent vertex, at most four vertices per colour. Thus both are certifiable functions with Lipschitz constant and certificate parameter at most . Both are bounded by .
To see exactly what concentration follows, let an integer-valued change by at most per coordinate and have certificates of size at most . For an input with , fix such a certificate . If has , form a hybrid agreeing with that input on and with outside . The hybrid has value at least , so at least certificate positions differ from . Equal weights on show that its Talagrand convex distance from is at least . Talagrand's convex distance inequality therefore gives the two-threshold concentration for certifiable functions,At an integer median , each median-side probability is at least . Taking thresholds or and using givesfor . Summing these tails gives . For sufficiently large , depending on , it follows thatApply this to and . Except with probability at most , .
A bad event at depends only on tentative colours at distance at most two. It is independent of the entire collection of bad events at distance greater than four. Its dependency graph of events consequently has maximum degree at most for large . The Lovász local lemma now makes all high-degree vertices good simultaneously: exponential decay beats this polynomial dependency bound.
The needed local-lemma step can be checked directly. If every bad-event probability is at most , induction on conditioning sets gives : split those events into non-neighbours of , independent of it, and at most neighbours, whose avoidance probability is at least by the induction. Multiplying the resulting conditional avoidance probabilities makes total avoidance positive. Taking works whenever , since . Our bound satisfies this criterion once .
Choose a successful partial colouring and set . This contains the original palette. High-degree vertices satisfyLow-degree vertices have after increasing if necessary. Greedy completion therefore gives . Finally, for ,The constants are deliberately conservative; existence of a fixed positive improvement is the point. The same proof uses an external maximum degree bound, so if infinite locally finite graphs are allowed, every finite subgraph has this uniform colouring bound and compactness extends the colouring to the whole graph.
For the stronger triangle-free result, the appropriate brief route is semi-random palette refinement for triangle-free colouring. Start with colours and repeatedly make small tentative random assignments, retain conflict-free choices, and update the uncoloured vertices' available lists. Triangle-freeness makes each graph neighbourhood independent. Track list size and average residual neighbour congestion per colour, prune unusually congested colours, and use concentration inequalities and the Lovász local lemma to preserve these invariants through the rounds. The ratio of residual congestion to list size decreases until a final completion using the Lovász local lemma or greedy coloring succeeds. Average control and pruning are important: four-cycles are allowed, so assuming tight uniform concentration for every individual colour load would be unjustified. With a sufficiently large absolute , this programme gives . The one-round fixed-fraction saving proved above alone does not establish that logarithmic improvement.
To show the order is best possible, let through integers and sample with . A Chernoff bound and union bound give maximum degree at most with probability tending to one. The expected triangle count is at most , so fewer than vertices need be deleted to remove all triangles with high probability. For , the expected number of independent -sets is at mostits logarithm is at most , which tends to minus infinity. The altered triangle-free graph thus has at least vertices and independence number below , giving for an absolute positive . Append a disjoint star graph whose centre has vertex degree if needed to make its maximum degree exactly . This proves the triangle-free chromatic lower bound at bounded maximum degree, , so the preceding order cannot be improved in general.
Past exam of the mathematics course of the University of Cambridge 2006 ii Paper 4 17F Solution Created 2026-09-24 Updated 2026-10-14
In the usual nondegenerate convention, a strongly regular graph of order and parameters is a finite simple -regular graph with in which adjacent vertices have common neighbours and distinct nonadjacent vertices have . Its adjacency matrix of a graph obeysFor the usual nondegenerate parameters with the graph is connected, so eigenvalue has multiplicity one. On the perpendicular complement of the all-ones vector, and the possible eigenvalues areIf has multiplicity , then zero trace gives . Solving provesThe denominator is positive in this nondegenerate convention. Otherwise all eigenvalues on the all-ones complement would coincide, forcing . All off-diagonal entries would then be the same, making the graph complete or edgeless. If complete graphs are admitted with arbitrary unused , the printed claim needs qualification: with satisfies the common-neighbour conditions vacuously but makes the fraction . For complete graphs with nonzero denominator, the spectral calculation still works with an unused root of multiplicity zero.
For the triangle-free graph claim, suppose first there are at least two vertices. Nonadjacent vertices have a common neighbour, so the graph is connected. If are adjacent, put and . Every member of is nonadjacent to , and exactly two of its three common neighbours with lie in , the third being . By symmetry every member of has exactly two neighbours in . Counting these edges gives , hence . Connectivity makes the graph -regular. Counting length-two paths from a vertex to non-neighbours givesHere , , and the larger-root multiplicity becomes . Thus is rational and therefore an integer. It is odd, , and integrality also gives . Since , one obtains , henceThe complete bipartite graph realizes : vertices in the same part have all three vertices of the other part as common neighbours, and vertices in opposite parts are adjacent. There are no triangles.
As literally worded, the one-vertex graph is a vacuous exception: it has no triangles or nonadjacent distinct pairs, but has . The displayed positive-degree classification therefore requires at least two vertices. This qualification completes the triangle-free graphs with three common neighbours argument rather than silently excluding a counterexample.
Past exam of the mathematics course of the University of Cambridge 2009 ii Paper 4 17F Solution Created 2026-09-24 Updated 2026-10-14
For each vertex triple , let indicate that its three edges are present. Then andEach variance is . Two distinct triples have independent indicators unless they share an edge; in that case their covariance is . There are unordered pairs sharing an edge. Therefore the triangle count in a binomial random graph hasIf , Markov inequality gives . If , then andThe second term tends to zero since . Chebyshev inequality now gives , proving the stated threshold. Here the random-graph phrase “almost surely” means asymptotically almost surely, that is, with probability tending to one.
At , let count edges. Direct subtraction givesSome graph has at least this expectation. Successively deleting one edge from each remaining triangle destroys all triangles with at most deletions, so a triangle-free graph remains with at least edges. This triangle deletion in the alteration method proves the requested existence bound.
It is not within a constant factor of the optimum. A balanced complete bipartite graph has edges and no triangle. Conversely, in a triangle-free graph each edge satisfies . Summing over edges gives , where is its edge count. Cauchy-Schwarz inequality gives , hence . The optimum is therefore , quadratic rather than the obtained bound.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 11 1 Solution Created 2026-10-03 Updated 2026-10-07
The lower shadow consists of the sets obtained by removing one element from a member:For a nonempty uniform set family, write its size in its unique decreasing binomial coefficient expansionThe Kruskal-Katona theorem states thatA colexicographic initial segment attains equality; thus this is an exact minimum, not just an asymptotic estimate.
Here is a direct proof of the requested Lovász shadow bound, avoiding any unproved numerical interpolation of the Kruskal-Katona theorem. The real binomial coefficient means . It is strictly increasing for . Since the set family is nonempty and its size is an integer, necessarily .
Apply the usual left coordinate shifts of a set family until the set family is fixed by every shift. A shift preserves its size and does not increase its lower shadow; the witness argument is supplied in Solution 3. Termination follows because every nontrivial shift reduces . It suffices to prove the inequality for this shifted set family.
Induct on , and, for each fixed , on . The cases and give, respectively, the single empty shadow member and the faces of an -set. Split the set family at coordinate one, writing for the members avoiding it and for the sets obtained by deleting it from members containing it. Every -subset of a member of belongs to : replace the one omitted coordinate by coordinate one. ThereforeThe two terms count shadow members avoiding and containing coordinate one.
Put . This is positive. If , the Pascal's identity gives . In this case and is a smaller nonempty set family. The mathematical induction hypothesis on family size gives , contradicting its containment in . Consequently . Write , so . The mathematical induction hypothesis on uniformity and the Pascal's identity now giveFor the degree-zero term is the constant one, which causes no difficulty.
For the graph application, identify a triangle-free graph with a subset of the possible edges. Removing an edge preserves being triangle-free, so . If is nonempty, the Lovász shadow bound givesThus, for with ,If the next set family is empty its probability is zero, so the same inequality holds without introducing . If , every later set family is empty; the divided expression is undefined and the correct assertion is this zero-probability conclusion.
Iterate the monotonicity of the effective ground-set parameter of a hereditary uniform layer. Whenever , all the intermediate parameters are at least their layer sizes, and all factors below are nonnegative. We obtain the stronger estimateThe second inequality follows from and the fact that decreases with . If the target set family is empty, the requested bound follows directly when its right side is nonnegative. When , the printed product can have signed factors and should instead be stopped at the first empty layer: its unrestricted signed form is not a meaningful probability bound. In the nonzero target range there is no such ambiguity. A uniformly safe extension, for , isIt agrees with the printed expression whenever all its factors are nonnegative. In particular is always safe when , and this includes the requested doubling case.
Taking in the nonzero range,If the -edge set family is empty the conclusion is immediate; if , interpreting the event as impossible gives the same conclusion. These qualifications distinguish the probability assertion from products or ratios outside their domains.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 3 17G ii Solution Created 2026-09-24 Updated 2026-09-29
Here and . By Mantel theorem, a triangle-free graph of this order has at mostedges, so contains a triangle in a graph.
Past exam of the mathematics course of the University of Cambridge 2022 ii Paper 2 17F a Solution Created 2026-09-24 Updated 2026-10-03
The extremal number is the maximum number of edges in an -vertex graph containing no subgraph isomorphic to .
Let be triangle-free with edges. For every edge , the neighbourhoods of and are disjoint apart from their endpoints, so
. Summing over edges and applying Cauchy-Schwarz inequality giveswhileThus , proving the required Mantel theorem bound.
. Summing over edges and applying Cauchy-Schwarz inequality giveswhileThus , proving the required Mantel theorem bound.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 122 1 b Solution 2026-09-28
Let count the triangles of the binomial random graph . ThenTwo distinct triangle indicators are dependent only when the triangles share an edge. Hence their ordered Janson dependency sum is
If , then . The first Janson inequality givesFor the reverse bound, the events that individual triangles are absent are decreasing, so Harris' inequality giveswhere keeps the logarithmic estimate uniform. Thus the probability is .
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 122 4 d Solution Created 2026-09-28 Updated 2026-10-03
Fix the requested and choose much smaller constants in that order. Apply the Szemerédi regularity lemma with regularity parameter and a sufficiently large lower bound to a largest triangle-free subgraph . Letbe the resulting equitable partition, and form the reduced graph of a regularity partition on by joining and when is -uniform in and has -density at least .
Choose . If contained a triangle, the triangle embedding lemma for regular pairs would give a triangle in . Thus is triangle-free, and Turan theorem gives
Part (c), with error , holds simultaneously for every pair of sets of size at least . Since is bounded independently of , all regularity classes and their halves satisfy this size condition for large . It follows that every cross-pair contains at most edges of . It also givestake a bipartition of carrying at least half its internal edges and apply the cross-pair estimate.
Now count the edges of . Pairs represented in contribute at mostThe exceptional set, the at most irregular pairs, pairs of -density below , and edges inside classes together contribute at mostChoose , then , and finally small enough in terms of . The total is at mostwith high probability, as required.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 132 1 a Solution Created 2026-09-24 Updated 2026-09-25
Apply the Shearer independence bound for a triangle-free graph. It states that an -vertex triangle-free graph of maximum degree at most has an independent set of sizefor an absolute . The result is immediate for bounded after reducing , while the theorem gives the asserted logarithmic gain for large. Thus
For completeness, the key input in Shearer's proof is to expose a random independent set one degree scale at a time. Triangle-freeness makes every neighbourhood independent, so conditioning on earlier choices creates no edges inside the available neighbours. The expected gain at degree scale is ; summing over the nonempty scales gives . The entropy, or hard-core-model, form of the argument makes this scale calculation rigorous without losing vertices counted at adjacent scales.
Maintain lists of available colours, tentatively colour small random portions, erase conflicts and prune colours used by neighbours. In a triangle-free graph, a vertex's neighbours form an independent set, which enables local estimates. Track list size and average remaining neighbour congestion per colour; prune unusually congested colours before the next round. Concentration and the Lovász local lemma preserve these invariants until lists have enough slack for completion. Tracking averages matters because triangle-free graphs can still contain many four-cycles and need not have uniform per-colour congestion.
Choose and a binomial random graph of edge probability . With high probability its maximum degree is at most , it has triangles, and every independent set has size at most . Delete one vertex per triangle. The resulting triangle-free graph has chromatic number at least . Appending a disjoint star of degree , if necessary, makes the maximum degree exactly without lowering the chromatic number. Thus the order is unavoidable.
Define and for . By the Mycielskian chromatic increase and Mycielskian triangle preservation, each is a finite triangle-free graph with chromatic number . The first steps are , the Grötzsch graph, and then a 23-vertex graph needing five colours. The vertex recurrence gives . These explicit examples show how arbitrarily strong graph coloring constraints can accumulate without any three-vertex clique.



