Goldberg snarks
A family of graphs whose edges cannot be colored with three colors
The Goldberg snark G5
Drag to turn it, or drag a vertex to move it.Swipe sideways to turn it. Tap a vertex, then drag it or tap a new place, to move it.
| Named for | Mark K. Goldberg |
|---|---|
| Published | 1981 |
| Blocks | k (odd, at least 5) |
| Vertices | 8k |
| Edges | 12k |
| Chromatic index | 4 |
| Resistance | 2 |
| Girth | 5 |
| Symmetries | 4k |
| Hamiltonian | No |
| Planar | No |
In graph theory, a graph is a set of points joined by lines. The points are called vertices, and the lines are called edges. A graph is cubic if three edges meet at every vertex.
An edge coloring gives each edge of a graph a color, with different colors for edges that meet. Most cubic graphs have an edge coloring with three colors. A snark is a cubic graph that needs four, with some exceptions. Snarks are named after the elusive creature in Lewis Carroll’s poem The Hunting of the Snark.
The Goldberg snarks are an infinite family of snarks that Mark K. Goldberg published in 1981. Each is made of an odd number of copies of a block of eight vertices, joined in a ring. The Goldberg snark with k blocks is written Gk, and there is one for each odd k that is at least 5. The smallest are:
Edge colorings with three colors
In the graphs on this site, two vertices are joined by at most one edge, and no edge joins a vertex to itself. Only the connections matter; the same graph can be drawn in many ways. A graph is connected if there is a path of edges between any two of its vertices. A cycle is a closed loop of edges that does not visit any vertex twice, and its length is its number of edges. The distance between two vertices is the number of edges in a shortest path between them.
Vizing’s theorem covers all graphs of this kind, not only cubic ones. If the largest number of edges at any vertex is Δ, the edges need either Δ or Δ + 1 colors. Graphs that need Δ are called class 1, and graphs that need Δ + 1 are called class 2.
An edge coloring with three colors is a 3-edge-coloring. A cubic graph needs at least three colors, because three edges meet at each vertex. By a theorem that Vadim Vizing proved in 1964, it never needs more than four [Vizing 1964].
Among cubic graphs with 28 vertices and no triangle, fewer than one in a thousand need four [Brinkmann & Van Overberghe 2026].
Snarks
The number of snarks with n vertices, under Definition 1 [Brinkmann & Van Overberghe 2026]:
| n | Snarks | n | Snarks |
|---|---|---|---|
| 10 | 1 | 28 | 2,900 |
| 18 | 2 | 30 | 28,399 |
| 20 | 6 | 32 | 293,059 |
| 22 | 20 | 34 | 3,833,587 |
| 24 | 38 | 36 | 60,167,732 |
| 26 | 280 | 38 | 1,051,945,967 |
No other value of n below 40 has any.
Some cubic graphs without a 3-edge-coloring are small modifications of others. For example, replacing a vertex of a snark with a triangle makes a larger cubic graph that also has no 3-edge-coloring. The usual definition of a snark excludes such graphs.
A snark is a connected cubic graph with these properties:
- It has no 3-edge-coloring.
- Its cycles all have length at least 5.
- Removing three or fewer edges never separates it into two parts that each contain a cycle.
Definitions vary. Some authors require only the first property, and that removing one edge never disconnects the graph [Campos et al. 2011].
The smallest snark is the Petersen graph, which has 10 vertices and 15 edges. It can be drawn as a pentagon, a five-pointed star inside it, and five edges joining the two.
- green
- blue
- gold
- uncolored
The Petersen graph with 13 of its 15 edges colored. Neither of the other two can be given any of these three colors.
- green
- blue
- gold
The proof of Lemma 2, with green, blue, and gold for colors 1, 2, and 3. Every edge of the star meets a gold edge.
The Petersen graph has no 3-edge-coloring.
Suppose that it has one, with colors 1, 2, and 3. Edges of the same color cannot meet, so each color appears at most twice among the five edges of the outer pentagon. One color must therefore appear exactly once. Call it 3. The colors around the pentagon are then 1, 2, 1, 2, 3.
Each vertex of the pentagon has one edge leading inward, whose color is the one that its two pentagon edges do not use. Three of the vertices are not on the pentagon edge colored 3, so the edges leading inward from them are colored 3. Each of the five edges of the star meets one of those three edges, so no edge of the star is colored 3. The star is a cycle of five edges, and two colors cannot alternate around a cycle of odd length. This is a contradiction.
Several conjectures in graph theory, including the 5-flow conjecture, would be proved in general if they were proved for snarks [Lukoťka 2024].
Coloring a Goldberg snark
Below is G5, which has 60 edges.
Color as many edges as you can so that edges of the same color never meet. Pick a color, then press edges. A vertex turns red if two edges of the same color meet there.
Keyboard: use the left and right arrow keys to move between edges, and the up and down arrow keys to move between blocks. Press 1 for green, 2 for blue, 3 for gold, or 0 to erase.
0 of 60 edges colored.
At most 58 of the 60 edges can be colored without edges of the same color meeting; see Uncolored edges.
Construction
A block and its links in the outer, middle, and inner rings.
A Goldberg snark is made of copies of a block, which has eight vertices and nine edges. The vertices are labeled a through h, following Mohar and Vodopivec [Mohar & Vodopivec 2006]. Three further edges, called links, join each block to the next.
The Petersen graph. The dashed edges are those that meet u, v, or w.
The block comes from the Petersen graph. Removing a path of three vertices, such as u, v, w, leaves seven vertices, which are b through h. It makes no difference which path is chosen, because a symmetry of the Petersen graph takes any path of three vertices to any other. Five edges led from the remaining vertices to u, v, and w. The one from b now leads to a new vertex, a. The ones from e, f, g, and h become links to the neighboring blocks.
The blocks are arranged in a ring. The links form part of three rings: the outer ring, which passes through e and f in every block; the middle ring, which passes through g and h; and the inner ring, which passes through a.
The Goldberg snark G5, with the vertices of one block labeled.
Definition 3 (Goldberg snark).
For k ≥ 3, the Goldberg graph Gk has 8k vertices ai, bi, ci, di, ei, fi, gi, hi and 12k edges, each written here as the two vertices that it joins:
ai bi,bi ci,bi di,ci ei,ci gi,di fi,di hi,ei fi,gi hi,ai ai+1,ei fi+1,hi gi+1,where i runs from 1 to k, and the index k + 1 is taken to be 1. If k is odd and at least 5, Gk is a Goldberg snark [Mohar & Vodopivec 2006].
Proof that Goldberg snarks need four colors
The first paragraph of the proof of Lemma 4 shows a case of the parity lemma.
The proof compares the colors of the outer and middle links between neighboring blocks.
In any 3-edge-coloring of a block and its links, the outer and middle links have the same color on exactly one of the block’s two sides.
- green
- blue
- gold
The last case of the proof of Lemma 4, with the dashed edges restored and colored. Green, blue, and gold stand for colors 1, 2, and 3.
Consider the seven vertices b through h. Five edges have exactly one end among them: the outer and middle links on each side, and the edge ab. Every color appears at each of the seven vertices. An edge between two of the seven accounts for two of those appearances, and each of the five edges accounts for one. Since seven is odd, each color appears on an odd number of the five edges. Three odd numbers that add up to five must be 3, 1, and 1, so one color appears on three of the five edges and the other two colors appear on one each.
Suppose that the outer and middle links have the same color on both sides. If the two sides use one color, it appears on at least four of the five edges. If they use two colors, each appears on at least two, but only one color appears more than once. Neither is possible.
Suppose instead that the outer and middle links have different colors on both sides. The color that appears three times, say 1, can appear only once on each side, so it appears once on the left, once on the right, and on ab. Let 2 be the other color on the left. Since 2 appears only once, the other color on the right is 3. Restore the vertices u, v, and w that were removed from the Petersen graph. Attach the links on the right to u, the links on the left to w, and the edge from b to v. Color the edge uv with 2 and the edge vw with 3. All three colors now meet at each of u, v, and w, so this is a 3-edge-coloring of the Petersen graph. By Lemma 2, there is none.
- green
- blue
- gold
A 3-edge-coloring of two linked blocks. The outer and middle links have the same color on the left, different colors in the middle, and the same color on the right.
For k ≥ 3, the Goldberg graph Gk has a 3-edge-coloring if and only if k is even.
Suppose that Gk has a 3-edge-coloring. There are k places around the ring where one block is linked to the next. By Lemma 4, the places where the outer and middle links have the same color alternate with the places where they have different colors. This is only possible if k is even.
If k is even, k/2 copies of the two blocks drawn above can be joined in a ring, as the links have the same colors on the left as on the right. The result is a 3-edge-coloring of Gk.
The drawing below shows Goldberg graphs with different numbers of blocks, with as many edges colored with three colors as possible.
- green
- blue
- gold
- uncolored
Short cycles and connectivity
Theorem 5 shows that Goldberg snarks have the first property in Definition 1. The next two propositions show that they have the other two.
For odd k ≥ 5, the only cycles of Gk with length less than 8 are two of length 5 and one of length 6 in each block, and the inner ring if k is 5 or 7.
A cycle within one block cannot use ab, as there is no other way back to a. The other eight edges form three paths from c to d, of lengths 2, 3, and 3, so they contain two cycles of length 5 and one of length 6.
Consider a cycle that visits two blocks or more, and suppose that there are two neighboring blocks with none of the cycle’s edges between them. It then has a first block and a last block, and it enters and leaves each of them by two different links on the same side. Those links end at two of a, e, and h, or at two of a, f, and g. Within a block, any two of the former are at distance 3, and so are any two of the latter. The cycle has at least three edges in each of the two blocks, and at least two links, so its length is at least 8.
Otherwise, the cycle uses a link between every two neighboring blocks, so it has at least k links. If they are all inner links, it is the inner ring. If none are, then no two of its links meet, so there is another edge between each link and the next, and its length is at least 2k ≥ 10. If some are, then it goes at least twice between a and one of e, f, g, and h within a block, which takes at least three edges each time, and its length is at least k + 6 ≥ 11.
For odd k ≥ 5, removing three or fewer edges from Gk never separates it into two parts that each contain a cycle.
Suppose that it does. Color the vertices of one part black and those of the other part white, so that at most three edges have ends of both colors. Call these edges mixed.
In each block, consider the core: the vertices b through h and the eight edges that join them. Every edge of a core is in a cycle of the core, so a core that has vertices of both colors has at least two mixed edges. At most one core therefore does. The cores of neighboring blocks are joined by two links, the outer and the middle. If one core is all black and a neighboring core is all white, both links between them are mixed.
If no core has both colors, then every core is the same color: otherwise the color would change at least twice around the ring, with two mixed edges each time. Say that they are white. Only vertices labeled a can be black, so the black cycle is the inner ring. Then all k edges ab are mixed, and k is more than three.
If one core has both colors, then the other k − 1 cores are all the same color, as there is at most one other mixed edge. Say that they are white. The black cycle is not the inner ring, as then the edge ab would be mixed in the other k − 1 ≥ 4 blocks. It is therefore within the one core, as b is white in every other block. If it has length 6, it contains e, f, g, and h, whose four links to white cores are mixed. If it has length 5, the links from two of those vertices are mixed, as are at least two edges of the core. There are at least four mixed edges either way.
Goldberg snarks are cubic and connected, since each vertex has three edges in Definition 3 and each block is connected and is linked to the next. They therefore meet Definition 1.
Uncolored edges
If a cubic graph has no 3-edge-coloring, at least two of its edges must be left uncolored when three colors are used. To see this, suppose that only one edge, uv, is uncolored. Every vertex other than u and v has an edge of each color, and u and v are each missing one color. The number of vertices is even, because three times as many is twice the number of edges. Each edge of one color covers two vertices, so the number of vertices missing that color is also even. The color missing at u is therefore the color missing at v. Giving that color to uv produces a 3-edge-coloring, which is a contradiction.
The smallest number of edges that must be left uncolored is called the resistance of the graph. The resistance of every Goldberg snark is 2: the edges ab and ce of one block can be left uncolored, and the rest can be colored. The drawings below show three blocks colored in this way, and two blocks with every edge colored. The links have the same colors at both ends of both drawings, so the three blocks can be joined in a ring with any number of copies of the two.
- green
- blue
- gold
- uncolored
Three blocks, with two edges of the first uncolored.
- green
- blue
- gold
Two blocks, with the same colors at both ends as the three.
Hamiltonian cycles
A Hamiltonian cycle is a cycle that visits every vertex exactly once, and a graph that has one is called Hamiltonian.
Goldberg snarks have no Hamiltonian cycle.
Suppose that there is a Hamiltonian cycle. It has 8k edges, which is an even number, so two colors can alternate around it. The cycle uses two of the three edges at each vertex. The unused edges do not meet each other, so they can all be given the third color. This is a 3-edge-coloring, which contradicts Theorem 5.
The same proof applies to every cubic graph that has no 3-edge-coloring, and so to every snark, as every cubic graph has an even number of vertices.
Every Goldberg snark has a cycle that visits all but one of its vertices, so its circumference, the length of its longest cycle, is 8k − 1. The cycle drawn for G5 passes between its second and third blocks, counting clockwise from the top, only once, along their inner link. Two more blocks can be inserted there. The cycle visits the first in the order a, b, d, f, e, c, g, h, and the second in the order g, h, d, f, e, c, b, a. Repeating this gives a cycle for every odd k ≥ 5.
Properties
These are properties of Gk for odd k ≥ 5.
| Property | Value | Source |
|---|---|---|
| Vertices | 8k | Definition 3 |
| Edges | 12k | Definition 3 |
| Chromatic index (fewest colors in an edge coloring) | 4 | Theorem 5 and Vizing’s theorem |
| Total chromatic number (fewest colors for the vertices and edges together, with different colors for neighboring vertices, for edges that meet, and for an edge and its ends) | 4 | [Campos et al. 2011] |
| Resistance (fewest edges left uncolored by three colors) | 2 | Uncolored edges |
| Girth (length of the shortest cycle) | 5 | Proposition 6 |
| Circumference (length of the longest cycle) | 8k − 1 | Hamiltonian cycles |
| Cycles of length 5 | 2k (11 if k = 5) | Proposition 6 |
| Diameter (largest distance between two vertices) | k + 1 if k ≤ 9, else (k + 11)/2 | Computed for k ≤ 25 |
| Radius (smallest r such that some vertex is at distance at most r from every other) | (k + 5)/2 | Computed for k ≤ 25 |
| Cyclic edge-connectivity (fewest edges whose removal leaves two parts that each contain a cycle) | 5 | Computed for k ≤ 15 |
| Circular flow number (defined below) | 4 + 2/(k + 1) | [Lukoťka 2024] |
| Symmetries (rearrangements of the vertices that keep joined vertices joined) | 4k | Symmetries |
| Crossing number (fewest crossings of edges in any drawing) | 2k | Known for k ≤ 11, conjectured for larger k [MathWorld] |
A circular nowhere-zero r-flow gives each edge a direction and a number from 1 to r − 1, which need not be whole. At each vertex, the numbers on the edges leading in have the same sum as the numbers on the edges leading out. The smallest r for which a graph has one is its circular flow number. The 5-flow conjecture says that it is at most 5 for every connected graph that cannot be disconnected by removing one edge. It is less than 5 for every Goldberg snark, so the conjecture holds for them.
Goldberg snarks are not planar: every drawing of one has edges that cross. This follows from the four color theorem, proved in 1976, which says that the regions of any map can be colored with four colors so that regions sharing a border have different colors. Peter Tait showed in 1880 that the theorem is equivalent to the statement that every planar cubic graph has a 3-edge-coloring, provided that removing one edge never disconnects the graph [Tait 1880]. If removing one edge disconnected a cubic graph, both parts would contain a cycle. By the third property in Definition 1, snarks therefore satisfy that condition, but they have no 3-edge-coloring.
| Snark | Vertices | Edges | Cycles of length 5 | Diameter | Radius | Symmetries | Crossing number |
|---|---|---|---|---|---|---|---|
| G5 | 40 | 60 | 11 | 6 | 5 | 20 | 10 |
| G7 | 56 | 84 | 14 | 8 | 6 | 28 | 14 |
| G9 | 72 | 108 | 18 | 10 | 7 | 36 | 18 |
| G11 | 88 | 132 | 22 | 11 | 8 | 44 | 22 |
| G13 | 104 | 156 | 26 | 12 | 9 | 52 | 26? |
| G15 | 120 | 180 | 30 | 13 | 10 | 60 | 30? |
A question mark indicates a conjectured crossing number.
Related graphs
- Twisted Goldberg snarks
A twisted Goldberg snark is made by exchanging the ends of two links between one pair of blocks, so that e is linked to g and h is linked to f [Ghebleh 2007]. The blocks are the same, so Lemma 4 still applies, and the proof that four colors are needed is unchanged.
- Loupekine snarks
Loupekine’s construction also removes a path of three vertices from each of several copies of a snark, and joins the pieces in a ring. A generalization of it produces the Goldberg snarks [Berman et al. 2017].
- Flower snarks
The flower snarks are also made of an odd number of identical blocks in a ring. Their blocks have four vertices [Isaacs 1975].
- Goldberg graphs that are not snarks
If k is even, Gk has a 3-edge-coloring. The graph G3 has no 3-edge-coloring, but it contains a triangle.
History
Peter Tait showed in 1880 that the four color problem is equivalent to one about edge colorings of planar cubic graphs [Tait 1880]. Julius Petersen showed in 1898 that the Petersen graph has no 3-edge-coloring [Petersen 1898]. It was the only known snark until 1946, when Danilo Blanuša found another [Blanuša 1946]. In 1975, Rufus Isaacs described two infinite families of snarks, including the flower snarks [Isaacs 1975]. Martin Gardner gave snarks their name in 1976, after Lewis Carroll’s poem The Hunting of the Snark [Gardner 1976]. In the same year, Isaacs described a construction by F. Loupekine that also joins blocks in a ring [Berman et al. 2017].
Mark K. Goldberg published the Goldberg snarks in 1981 [Goldberg 1981]. Later papers studied their embeddings in surfaces [Mohar & Vodopivec 2006], their circular chromatic index [Ghebleh 2007], and their total chromatic number [Campos et al. 2011]. Goldberg received a doctorate from the Institute of Mathematics in Novosibirsk, and was later a professor of computer science at Rensselaer Polytechnic Institute. The Goldberg–Seymour conjecture, on edge colorings of graphs in which two vertices may be joined by more than one edge, is named after Goldberg and Paul Seymour. A proof was published in 2025 [Chen et al. 2025].
Code
The following Python function constructs Gk with NetworkX. Its blocks are numbered from 0.
import networkx as nx
def goldberg(k):
graph = nx.Graph()
for i in range(k):
for u, v in "ab bc bd ce cg df dh ef gh".split():
graph.add_edge((u, i), (v, i))
for u, v in "aa ef hg".split():
graph.add_edge((u, i), (v, (i + 1) % k))
return graphDrawings of each graph, its edge list, and its graph6 encoding can be downloaded from its page.
References
- L. W. Berman, D. Oliveros, and G. I. Williams (2017). Cyclic pseudo-Loupekine snarks. arXiv:1707.05294. Published in 2024 as “Rotationally symmetric snarks from voltage graphs”, Discrete Mathematics 347(4), 113874.
- D. Blanuša (1946). Problem četiriju boja. Glasnik Matematičko-Fizički i Astronomski, Series II 1, 31–42 (in Croatian).
- G. Brinkmann and S. Van Overberghe (2026). Algorithms for the generation of snarks. arXiv:2603.17789.
- C. N. Campos, S. Dantas, and C. P. de Mello (2011). The total-chromatic number of some families of snarks. Discrete Mathematics 311(12), 984–988.
- G. Chen, G. Jing, and W. Zang (2025). Proof of the Goldberg–Seymour conjecture on edge-colorings of multigraphs. Journal of Combinatorial Optimization 50(3), article 23. Correction in 51(1), article 1 (2026).
- M. Gardner (1976). Mathematical Games: Snarks, boojums and other conjectures related to the four-color-map theorem. Scientific American 234(4), 126–130.
- M. Ghebleh (2007). The circular chromatic index of Goldberg snarks. Discrete Mathematics 307(24), 3220–3225.
- M. K. Goldberg (1981). Construction of class 2 graphs with maximum vertex degree 3. Journal of Combinatorial Theory, Series B 31(3), 282–291.
- R. Isaacs (1975). Infinite families of nontrivial trivalent graphs which are not Tait colorable. The American Mathematical Monthly 82(3), 221–239.
- R. Lukoťka (2024). Circular flow number of Goldberg snarks. Discrete Mathematics 347(3), 113792.
- B. Mohar and A. Vodopivec (2006). On polyhedral embeddings of cubic graphs. Combinatorics, Probability and Computing 15(6), 877–893.
- J. Petersen (1898). Sur le théorème de Tait. L’Intermédiaire des Mathématiciens 5, 225–227.
- P. G. Tait (1880). Remarks on the previous communication. Proceedings of the Royal Society of Edinburgh 10, 729.
- V. G. Vizing (1964). On an estimate of the chromatic class of a p-graph. Diskretnyi Analiz 3, 25–30 (in Russian).
- E. W. Weisstein. Goldberg graph. MathWorld, a Wolfram resource. Accessed November 2026.
Citing this site
@misc{goldbergsnarks,
author = {Goldberg, Josh},
title = {Goldberg Snarks},
year = {2026},
url = {https://goldbergsnarks.com}
}