# Distance-Two Colorings of Barnette Graphs

Barnette identified two interesting classes of cubic polyhedral graphs for which he conjectured the existence of a Hamiltonian cycle. Goodey proved the conjecture for the intersection of the two classes. We examine these classes from the point of view of distance-two colorings. A distance-two r-coloring of a graph G is an assignment of r colors to the vertices of G so that any two vertices at distance at most two have different colors. Note that a cubic graph needs at least four colors. The distance-two four-coloring problem for cubic planar graphs is known to be NP-complete. We claim the problem remains NP-complete for tri-connected bipartite cubic planar graphs, which we call type-one Barnette graphs, since they are the first class identified by Barnette. By contrast, we claim the problem is polynomial for cubic plane graphs with face sizes 3, 4, 5, or 6, which we call type-two Barnette graphs, because of their relation to Barnette's second conjecture. We call Goodey graphs those type-two Barnette graphs all of whose faces have size 4 or 6. We fully describe all Goodey graphs that admit a distance-two four-coloring, and characterize the remaining type-two Barnette graphs that admit a distance-two four-coloring according to their face size. For quartic plane graphs, the analogue of type-two Barnette graphs are graphs with face sizes 3 or 4. For this class, the distance-two four-coloring problem is also polynomial; in fact, we can again fully describe all colorable instances -- there are exactly two such graphs.

## Authors

• 3 publications
• 6 publications
• 2 publications
• ### Complexity and algorithms for injective edge-coloring in graphs

An injective k-edge-coloring of a graph G is an assignment of colors, i....
04/16/2021 ∙ by Florent Foucaud, et al. ∙ 0

• ### Exact square coloring of subcubic planar graphs *

We study the exact square chromatic number of subcubic planar graphs. An...
09/02/2020 ∙ by Florent Foucaud, et al. ∙ 0

• ### Role Coloring Bipartite Graphs

A k-role coloring alpha of a graph G is an assignment of k colors to the...
02/01/2021 ∙ by Sukanya Pandey, et al. ∙ 0

• ### Normal edge-colorings of cubic graphs

A normal k-edge-coloring of a cubic graph is an edge-coloring with k col...
04/25/2018 ∙ by Giuseppe Mazzuoccolo, et al. ∙ 0

• ### Coloring Drawings of Graphs

We consider face-colorings of drawings of graphs in the plane. Given a m...
08/21/2020 ∙ by Christoph Hertrich, et al. ∙ 0

• ### The Minimality of the Georges-Kelmans Graph

In 1971, Tutte wrote in an article that "it is tempting to conjecture th...
01/04/2021 ∙ by Gunnar Brinkmann, et al. ∙ 0

• ### The smallest nontrivial snarks of oddness 4

The oddness of a cubic graph is the smallest number of odd circuits in a...
01/30/2019 ∙ by Jan Goedgebeur, et al. ∙ 0

##### This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

## 1. Introduction

Tait conjectured in 1884 [21] that all cubic polyhedral graphs, i.e., all tri-connected cubic planar graphs, have a Hamiltonian cycle; this was disproved by Tutte in 1946 [23], and the study of Hamiltonian cubic planar graphs has been a very active area of research ever since, see for instance [1, 10, 16, 18]. Barnette formulated two conjectures that have been at the centre of much of the effort: (1) that bipartite tri-connected cubic planar graphs are Hamiltonian (the case of Tait’s conjecture where all face sizes are even) [4], and (2) that tri-connected cubic planar graphs with all face sizes or are Hamiltonian, cf. [3, 19]. Goodey [11, 12] proved that the conjectures hold on the intersection of the two classes, i.e., that tri-connected cubic planar graphs with all face sizes or are Hamiltonian. When all faces have sizes or , this was a longstanding open problem, especially since these graphs (tri-connected cubic planar graphs with all face sizes or ) are the popular fullerene graphs [8]. The second conjecture has now been affirmatively resolved in full [17]. For the first conjecture, two of the present authors have shown in [9] that if the conjecture is false, then the Hamiltonicity problem for tri-connected cubic planar graphs is NP-complete. In view of these results and conjectures, in this paper we call bipartite tri-connected cubic planar graphs type-one Barnette graphs; we call cubic plane graphs with all face sizes or type-two Barnette graphs; and finally we call cubic plane graphs with all face sizes or Goodey graphs. Note that it would be more logical, and historically accurate, to assume tri-connectivity also for type-two Barnette graphs and for Goodey graphs. However, we prove our positive results without needing tri-connectivity, and hence we do not assume it.

Cubic planar graphs have been also of interest from the point of view of colorings [6, 14]. In particular, they are interesting for distance-two colourings. Let be a graph with degrees at most . A distance-two -coloring of is an assignment of colors from to the vertices of such that if a vertex has degree then the colors of and of all the neighbors of are all distinct. (Thus a distance-two coloring of is a classical coloring of .) Clearly a graph with maximum degree needs at least colors in any distance-two coloring, since a vertex of degree and its neighbours must all receive distinct colors. It was conjectured by Wegner [24] that a planar graph with maximum degree has a distance-two -colouring where for , for , and for all larger . The case has been settled in the positive by Hartke, Jahanbekam and Thomas [13], cf. also [22].

For cubic planar graphs in general it was conjectured in [13] that if a cubic planar graph is tri-connected, or has no faces of size five, then it has a distance-two six-coloring. We propose a weaker version of the second case of the conjecture, namely, we conjecture that a bipartite cubic planar graph can be distance-two six-colored. We prove this in one special case (Theorem 2.5), which of course also confirms the conjecture of Hartke, Jahanbekam and Thomas for that case. Heggerness and Telle [15] have shown that the problem of distance-two four-coloring cubic planar graphs is NP-complete. On the other hand, Borodin and Ivanova [5] have shown that subcubic planar graphs of girth at least can be distance-two four-colored. In fact, there has been much attention focused on the relation of distance-two colorings and the girth, especially in the planar context [5, 14].

Our results focus on distance-two colorings of cubic planar graphs, with particular attention on Barnette graphs, of both types. We prove that a cubic plane graph with all face sizes divisible by four can always be distance-two four-colored, and a give a simple condition for when a bi-connected cubic plane graph with all face sizes divisible by three can be distance-two four-colored using only three colors per face. It turns out that the distance-two four-coloring problem for type-one Barnette graphs is NP-complete, while for type-two Barnette graphs it is not only polynomial, but the positive instances can be explicitly described. They include one infinite family of Goodey graphs (cubic plane graphs with all faces of size or ), and all type-two Barnette graphs which have all faces of size or . Interestingly, there is an analogous result for quartic (four-regular) graphs: all quartic planar graphs with faces of only sizes or that have a distance-two five coloring can be explicitly described; there are only two such graphs.

Note that we use the term “plane” graph when the actual embedding is used, e.g., by discussing the faces; when the embedding is unique, as in tri-connected graphs, we stick with writing “planar”.

## 2. Relations to edge-colorings and face-colorings

Distance-two colorings have a natural connection to edge-colorings.

###### Theorem 2.1.

Let be a graph with degrees at most that admits a distance-two -coloring, with odd. Then admit an edge-coloring with colors.

###### Proof.

The even complete graph can be edge-colored with colors by the Walecki construction [2]. We fix one such coloring , and then consider a distance-two -coloring of . If an edge of has colors at its endpoints, we color in with the color . It is easy to see that this yields an edge-coloring of with colors. ∎

We call the resulting edge-coloring of the derived edge-coloring of the original distance-two coloring.

In this paper, we mostly focus on the case (the subcubic case). Thus we use the edge-coloring of by colors red, blue, green. This corresponds to the unique partition of into perfect matchings. Note that for every vertex of and every edge-color , there is a unique other vertex of adjacent to in edge-color . Thus if we have the derived edge-coloring we can efficiently recover the original distance-two coloring. In the subcubic case, in turns out to be sufficient to have just one color class of the edge-coloring of .

###### Theorem 2.2.

Let be a subcubic graph, and let be a set of red edges in . The question of whether there exists a distance-two four-coloring of for which the derived edge-coloring has as one of the three color classes can be solved by a polynomial time algorithm. If the answer is positive, the algorithm will identify such a distance-two coloring.

###### Proof.

We may assume in red joins colors blue joins colors and green joins colors . Note that we may also assume that is a matching that covers at least all vertices of degree three, otherwise we answer in the negative. We may further assume that some vertex gets an even color ( or ). The parity of the color of a vertex determines the parity of the color of its neighbors, namely the parity is the same if they are adjacent by an edge in , and they are of different parity otherwise. We may thus extend from the assignment of parities to all the vertices, unless an inconsistency is reached, in which case no coloring exists. Otherwise, at this point all vertices have only two possible colors, namely for odd and for even.

Define an auxiliary graph with vertices , and edges in if is a red edge in or if there is a path without red edges in . Note that these edges join vertices of the same parity, and must have different colors. If has an odd cycle, then no solution exists. Otherwise is bipartite, and we may choose in different sides of a bipartition of for odd vertices, and in different sides for even vertices.

Each vertex will have at most one neighbor of the same parity in , namely the one joined to it by the red edge, and is an edge of . This guarantees different colors for . The at most two other neighbors of have different parity from , and the path in ensures the edge is in . This guarantees different colors for . Thus the colors for are all different at each vertex , and we have a distance-two coloring of . ∎

There is also a relation to face-colorings. It is a folklore fact that the faces of any bipartite cubic plane graph can be three-colored [20]. This three-face-coloring induces a three-edge-coloring of by coloring each edge by the color not used on its two incident faces. (It is easy to see that this is in fact an edge-coloring, i.e., that incident edges have distict colors.) We call an edge-coloring that arises this way from some face-coloring of a special three-edge-coloring of . We first ask when is a special three-edge-coloring of the derived edge-coloring of a distance-two four-coloring of .

###### Theorem 2.3.

A special three-edge-coloring of is the derived edge-coloring of some distance-two four-coloring of if and only if the size of each face is a multiple of .

###### Proof.

The edges around a face alternate in colors, and the vertices of can be colored consistently with this alternation if and only if the size of is a multiple of 4. This proves the “only if” part. For the “if” part, suppose all faces have size multiple of . If there is an inconsistency, it will appear along a cycle in . If there is only one face inside , there is no inconsistency. Otherwise we can join some two vertices of by a path inside , and the two sides of inside give two regions that are inside two cycles . The consistency of then follows from the consistency of each of by induction on the number of faces inside the cycle. ∎

###### Corollary 2.4.

Let be a cubic plane graph in which the size of each face is a multiple of four. Then can be distance-two four-colored.

We now prove a special case of the conjecture stated in the introduction, that all bipartite cubic plane graphs can be distance-two six-colored. Recall that the faces of any bipartite cubic plane graph can be three-colored.

###### Theorem 2.5.

Suppose the faces of a bipartite cubic plane graph are three-colored red, blue and green, so that the red faces are of arbitrary even size, while the size of each blue and green face is a multiple of . Then can be distance-two six-colored.

###### Proof.

Let be the multigraph obtained from by shrinking each of the red faces. Clearly is planar, and since the sizes of blue and green faces in are half of what they were in , they will be even, so is also bipartite. Let us label the two sides of the bipartition as and respectively. Now consider the special three-edge coloring of associated with the face coloring of . Each red edge in this special edge-coloring joins a vertex of with a vertex of ; we orient all red edges from to . Now traversing each red edge in in the indicated orientation either has a blue face on the left and green face on the right, or a green face on the left and blue face on the right. In the former case we call the edge class one in the latter case we call it class two. Each vertex of is incident with exactly one red edge; the vertex inherits the class of its red edge. The vertices around each red face in are alternatingly in class 1 and class 2. We assign colors to vertices of class one and colors to vertices of class two. It remains to decide how to choose from the three colors available for each vertex. A vertex adjacent to red edges in class has only three vertices within distance two in the same class, namely the vertex across the red edge, and the two vertices at distance two along the red face in either direction. Therefore distance-two coloring for class corresponds to three-coloring a cubic graph. Since neither class can yield a , such a three-coloring exists by Brooks’ theorem [7]. This yields a distance-two six-coloring of . ∎

## 3. Distance-two four-coloring of type-one Barnette graphs is NP-complete

We now state our main intractability result.

###### Theorem 3.1.

The distance-two four-coloring problem for tri-connected bipartite cubic planar graphs is NP-complete.

We will begin by deriving a weaker version of our claim.

###### Theorem 3.2.

The distance-two four-coloring problem for bipartite planar subcubic graphs is NP-complete.

###### Proof.

Consider the graph in Figure 1.

We will reduce the problem of -coloring planar graphs to the distance-two four-coloring problem for bipartite planar subcubic graphs. In the -coloring problem we are given a planar graph and and the question is whether we can color the vertices of with colors that are vertices of so that adjacent vertices of obtain adjacent colors. This can be done if and only if is three-colorable, since the graph both contains a triangle and is three-colorable itself. (Thus any three-coloring of is an -coloring of , and any -coloring of composed with a three-coloring of is a three-coloring of .) It is known that the three-coloring problem for planar graphs is NP-complete, hence so is the -coloring problem.

We prove that is -colorable if and only if is distance-two four-colorable. In an -coloring of , the vertices of are actually assigned unordered pairs from , since the vertices of are labeled by pairs. (Note that two vertices of are adjacent if and only if the pairs they are labeled with intersect in exactly one element.) Thus suppose that we have an -coloring of . If (i.e., the vertex of is assigned the vertex of labeled by the pair ), then we colour the ring of so that its characteristic pair is . This still leaves a choice of which of the colors is in which , in each of the links . Since is an coloring, adjacent vertices are assigned pairs that intersect if exactly one element. This makes it possible to color each so that all colors at distance at most two are distinct. For instance if vertices and are adjacent in and colored by by , and if is adjacent to the vertices in the ring for and in the ring for , then both in the ring for and in the ring for are colored , as is , while in the ring for and in the ring for are colored and respectively. It is easy to see that this is a distance-two four-coloring of .

Conversely, in any distance-two four-coloring of , the color of a vertex determines the same color in the ’s of its adjacent links of the rings for and , whence the characteristic pairs of these two rings intersect in exactly one element. Thus we may define a mapping of to by assigning to each vertex the characteristic pair of the ring for . Then is an -coloring of , since adjacent vertices of are assigned pairs that are adjacent in . ∎

To prove the full Theorem 3.1, the construction of the graph is modified as suggested in Figure 3. Recall that in the construction of , for each edge of a separate vertex was made adjacent to in the ring of and in the ring of . Recall that both and are even, and the vertices (with both subscripts odd) remained available for connection. We now make a new edge-gadget around the vertex , making it directly adjacent to , and connected to by a path, as depicted in Figure 3. In both rings, the two “” type vertices in the two consecutive links are joined together by an additional edge; specifically, we add the edges and . (Note that this forces the corresponding “” type vertices and to be colored differently in any distance-two four-coloring, and similarly for and ). Moreover, further vertices and edges are added, as depicted in Figure 3. The shaded ten-sided region is identified with the ten-sided exterior face of the graph depicted in Figure 5, which has a unique distance-two four-coloring, shown there. (The heavy edges correspond to the ten-sided shaded figure.) (Note that the graph in Figure 5 was obtained from the graph in Figure 7 by the deletion of two edges.) Note that the construction is not symmetric, as it depends on which ring is viewed as the “bottom” ring for the vertex . (The depicted figure has the ring of on the bottom, but the conclusions are the same if it were the ring of .) We can choose either way, independently for each edge of . It can be seen that the resulting graph, which we denote by , is bipartite, planar, and cubic. We may assume that is bi-connected (the three-coloring problem for biconnected planar graphs is still NP-complete), and therefore is also tri-connected (as no two faces share more than one edge). Using the unique distance-two four-colouring of the graph in Figure 5, it also follows that in any distance-two four-coloring of the vertices and have different colors, while both vertices and have the same color (the color of ), in any distance-two four-coloring of . To facilitate checking this, we show in Figure 4 a partial distance-two four-coloring, by circles, squares, up triangles, and down triangles; this coloring is forced by arbitrarily coloring and its three neighbours by four distinct colors. Since the colors of the pair and the pair have exactly one color in common, the previous NP-completeness proof applies, i.e., is -colorable if and only if is distance-two four-colorable.

We remark that (with some additional effort) we can prove that the problem is still NP-complete for the class of tri-connected bipartite cubic planar graphs with no faces of sizes larger than .

## 4. Distance-two four-coloring of Goodey graphs

Recall that Goodey graphs are type-two Barnette graph with all faces of size and [11, 12]. In other words, a Goodey graph is a cubic plane graph with all faces having size or . By Euler’s formula, a Goodey graph has exactly six square faces, while the number of hexagonal faces is arbitrary.

A cyclic prism is the graph consisting of two disjoint even cycles and with the additional edges , . It is easy to see that cyclic prisms have either no distance-two four-coloring (if is odd), or a unique distance-two four-coloring (if is even). Only the cyclic prisms with are Goodey graphs, and thus from Goodey cyclic graphs only the cube (the case of ) has a distance-two coloring, which is moreover unique.

In fact, all Goodey graphs that admit distance-two four-coloring can be constructed from the cube as follows. The Goodey graph is the cube, i.e., the cyclic prism with . The Goodey graph is depicted in Figure 7. It is obtained from the cube by separating the six square faces and joining them together by a pattern of hexagons, with three hexagons meeting at a vertex tying together the three faces that used to meet in one vertex. The higher numbered Goodey graphs are obtained by making the connecting pattern of hexagons higher and higher. The next Goodey graph has two hexagons between any two of the six squares, with a central hexagon in the centre of any three of the squares, the following Goodey graph has three hexagons between any two of the squares and three hexagons in the middle of any three of the squares, and so on. Thus in general we replace every vertex of the cube by a triangular pattern of hexagons whose borders are replacing the edges of the cube. We illustrate the vertex replacement graphs in Figure 6, without giving a formal description. The entire Goodey graph is depicted in Figure 7.

We have the following results.

###### Theorem 4.1.

The Goodey graphs have a unique distance-two four-coloring, up to permutation of colors.

###### Proof.

We described as eight triangular regions , each consisting of hexagons, one region for each vertex of the cube. Each has three squares at the corners, which we describe as two squares joined by a chain of hexagons horizontally at the bottom, and a third square on top. (See Figure 6.)

We partition the vertices into horizontal paths , , with each having endpoints of degree 2 and internal vertices of degree 3. The path has length , and the remaining paths , have length . In particular the last has length 4, and is the only that is actually a cycle, pictured as the square at the top. See Figure 8.

We denote . The edges between and are , for , odd, and . We can choose the permutation of colors for the square to be , forcing for neighbors the colors , and completing the adjacent square, or hexagon with the assignment to of colors . This forced process extends similarly through the chain of hexagons until the last square.

We have derived the beginning of as and the beginning of as . After the forced extension, will be an initial segment of and will be an initial segment of .

For , the edges between and are , for , odd, and .

A similar process derives the beginning of for odd as and the beginning of for even as . After the forced extension, for odd will be an initial segment of and for even will be an initial segment of .

This gives a unique coloring for the triangular region after coloring one square , which is uniquely extended to the four triangular regions surrounding , and then uniquely extended to the four triangular regions surrounding opposite to . ∎

###### Theorem 4.2.

The Goodey graphs are the only bipartite cubic planar graphs having a distance-two four-coloring.

###### Proof.

Consider a Goodey graph with a fixed distance-two four-coloring. Recall that Goodey graphs have exactly six squares. Each of the squares is joined by four chains of hexagons to four squares. We consider the dual six-vertex graph whose vertices are squares in , with an edge in if and only if there is a chain of hexagons joining squares and . It can be readily verified that such a chain cannot cross itself or another chain in . Indeed, the colors in the fixed distance-two four-coloring are uniquely forced along such chains and they don’t match if the chains should cross. It follows that the graph is planar. A similar argument shows that a chain cannot return to the same square, and two chains from the square cannot end at the same square . Thus has no faces of size one or two, and by Euler’s formula it has edges and faces; therefore all faces of must be triangles, and is the octahedron.

Let be a triangular face in , let be a side of with the smallest number of hexagons in . Then it can again be checked using the coloring that the other two sides of will also have hexagons in . Then corresponds to a triangular region as in Theorem 4.1, and the octahedron yields for . ∎

We can therefore conclude the following.

###### Corollary 4.3.

The distance-two four-coloring problem for Goodey graphs is solvable in polynomial time.

Recognizing whether an input Goodey graph is some can be achieved in polynomial time; in the same time bound can actually be distance-two four-colored.

## 5. Distance-two four-coloring of type-two Barnette graphs is polynomial

We now return to general type-two Barnette graphs, i.e., cubic plane graphs with face sizes , or . As a first step, we analyze when a general cubic plane graph admits a distance-two four-coloring which has three colors on the vertices of every face of .

###### Theorem 5.1.

A cubic plane graph has a distance-two four-coloring with three colors per face if and only if

1. all faces in have size which is a multiple of ,

2. is bi-connected, and

3. if two faces share more than one edge, the relative positions of the shared edges must be congruent modulo in the two faces.

The last condition means the following: if faces meet in edges and there are edges between and in (some traversal of) , and edges between and in (some traversal of) , then .

###### Proof.

Suppose has a distance-two four-coloring with three colors in each face. The unique way to distance-two color a cycle with colors is by repeating them in some order along one of the two traversals of the cycle. Therefore the length is a multiple of so (1) holds. Moreover, there can be no bridge in as that would imply a face that self-intersects and is traversed in opposite directions along any traversal of that face, disagreeing with the order in one of them; thus (2) also holds. Finally, (3) holds because the common edges must have the same colors in both faces.

Suppose the conditions hold, and consider the dual of . (Note that each face of is a triangle.) We find a distance-two coloring of as follows. Let be a face in ; according to conditions (1-2), its vertices can be distance-two colored with three colors. That takes care of the vertex in . Using condition (3), we can extend the coloring of to any face adjacent to in . Note that we can use the fourth colour, , on the two vertices adjacent in to the two vertices of a common edge. In this way, we can propagate the distance-two coloring of along the adjacencies in . If this produces a distance-two coloring of all vertices of , we are done. Thus it remains to show there is no inconsistency in the propagation. If there is an inconsistency, it will appear along a cycle in . If there is only one face inside of , then is a triangle corresponding to a vertex of , and there is no inconsistency. Otherwise we can join some two vertices of by a path inside , and the two sides of inside give two regions that are inside two cycles . The consistency of then follows from the consistency of each of by induction on the number of faces inside the cycle. ∎

It turns out that conditions (1 - 3) are automatically satisfied for cubic plane graphs with faces of sizes or .

###### Corollary 5.2.

Type-two Barnette graphs with faces of sizes or are distance-two four-colorable.

###### Proof.

Such a graph must be bi-connected, i.e., cannot have a bridge, since no triangle or hexagon can self-intersect. Moreover, only two hexagons can have two common edges, and it is easy to check that they must indeed be in relative positions congruent modulo on the two faces. (Since all vertices must have degree three.) Thus the result follows from Theorem 5.1. ∎

###### Theorem 5.3.

Let be type-two Barnette graph. Then is distance-two four-colorable if and only if it is one of the graphs , or all faces of have sizes or .

###### Proof.

If there are faces of size both and (and possibly size ), then there must be (by Euler’s formula) two triangles and three squares, and as in the proof of Theorem 4.2, the squares must be joined by chains of hexagons, which is not possible with just three squares.

If there is a face of size , then there is no distance-two four-coloring since all five vertices of that face would need different colors. ∎

## 6. Distance-two coloring of quartic graphs

A quartic graph is a regular graph with all vertices of degree four. Thus any distance-two coloring of a quartic graph requires at least five colors. A four-graph is a plane quartic graph whose faces have sizes or . The argument to view these as analogues of type-two Barnette graphs is as follows. For cubic plane Euler’s formula limits the numbers of faces that are triangles, squares, and pentagons, but does not limit the number of hexagon faces. Similarly, for plane quartic graphs, Euler’s formula implies that such a graph must have triangle faces, but places no limits on the number of square faces.

We say that two faces are adjacent if they share an edge.

###### Lemma 6.1.

If a four-graph can be distance-two five-colored, then every square face must be adjacent to a triangle face. Thus can have at most square faces.

###### Proof.

We view the numbers modulo , and number is separate. Let be a square face that has no adjacent triangle face. (This is depicted in Figure 9 as the square in the middle.) Color by . Let the adjacent square faces be . One of must be colored and the other one . Then either all or all are colored , say all are colored , and all are colored . Then cannot be a triangle face, or would be both colored at distance two. Therefore must be a square face. (In the figure, this is indicated by the corner vertices being marked by smaller circles; these must exist to avoid a triangle face.) This means that the original square is surrounded by eight square faces for , and must have color , since have colors .

But then there cannot be a triangle face , since is within distance two of of colors , so each of the adjacent square faces for has adjacent square faces as well. This process of moving to adjacent square faces eventually reaches all faces as square faces, contrary to the fact that there are triangle faces. ∎

It follows that there are only finitely many distance-two five-colorable four-graphs.

###### Corollary 6.2.

The distance-two five-coloring problem for four-graphs is polynomial.

In fact, we can fully describe all four-graphs that are distance-two five-colorable. Consider the four-graphs given in Figure 10. The graph has 8 triangle faces and 4 square faces, the graph has 8 triangle faces and 24 square faces. Note that is obtained from the cube by inserting two vertices of degree four in two opposite square faces. Similarly, is obtained from the cube by replacing each vertex with a triangle and inserting into each face of the cube a suitably connected degree four vertex. (In both figures, these inserted vertices are indicated by smaller size circles.)

###### Theorem 6.3.

The only four-graphs that can be distance-two five-colored are . These two graphs can be so colored uniquely up to permutation of colors.

###### Proof.

We show that if can be so colored, then either is or every triangle in must be surrounded by six square faces, in which case is .

Suppose has two adjacent triangles and . The vertices adjacent to must be given two colors other than those of . If has two adjacent squares, then it has five adjacent vertices, which must be given the two colors in alternation, a contradiction. Similarly if is adjacent to three triangles then the three vertices adjacent would need three new colors, a contradiction.

We may thus assume a triangle . If there is a square , this square plus the two adjacent triangles would need six colors, a contradiction, so is a triangle, completing adjacent to the four-cycle . Color with color . Then the additional vertex adjacent to for must be given color (modulo 4), so these form a 4-cycle, and any additional vertex adjacent to a must get color 5, so there is a single additional with color 5. This gives a uniquely colored , up to permutation of colors.

In the remaining case, each triangle has adjacent squares , with addition modulo . The vertices must be given the two colors different from those of , and in alternation around , so there cannot be a triangle else with the same color would be at distance two. So there are squares , and is surrounded by six squares.

By Lemma 6.1, we must have a triangle adjacent to the square , either or , but not both since six colors would be needed. Let such a triangle be , and we link to the three . These triangles viewed as vertices linked form a cubic graph without triangles , since a triangle face would be three triangles joined in , which would need to have only three squares inside by Lemma 6.1. The graph has 8 vertices for the 8 triangles, so this graph is the cube . Replacing each vertex corresponding to a triangle by the corresponding triangle gives a graph .

Suppose the triangles adjacent to are for . Then going around a face of we notice only one vertex inside this face by Lemma 6.1, giving the construction of . If we assign to the vertex inside this face the color , we notice that the surrounding triangles in must use three colors at most 4, and each must omit a different color of 4. This implies that all vertices in centers of square faces must be 5, and only opposite triangles for use the same 3 out of 4 colors. This proves existence and uniqueness up to permutation of colors of the distance-two 5-coloring of .

Suppose instead the adjacent triangles are , , and . If there is no triangle , then the three squares between and are respectively adjacent to squares , and must be adjacent to a triangle by Lemma 6.1. There must be triangles at both ends of the and these are adjacent to and , a contradiction.

Finally, suppose again the adjacent triangles are , , and , but there is a triangle . This triangle faces , and faces . Triangles facing each other give two diagonals in the square faces of , which implies two opposite faces without such diagonals in , while the four sets of two diagonals form a matching of the vertices of . If the center of a face without diagonals gets assigned , then the adjacent triangles will be assigned a subset of . Then joining the sets of two diagonals assigns a to a vertex of each remaining triangle, which is not possible to the center of the remaining face without diagonals. ∎

We close with a few remarks and open problems.

Wegner’s conjecture [24] that any planar graph with maximum degree can be distance-two seven-colored has been proved in [13, 22]. That bound is actually achieved by a type-two Barnette graph, namely the graph obtained from by subdividing three incident edges. Thus the bound of cannot be lowered even for type-two Barnette graphs.

Wegner’s conjecture for claims that any planar graph with maximum degree four can be distance-two nine-colored. The four-graph in Figure 11 actually requires nine colors in any distance-two coloring. Thus if Wegner’s conjecture for is true, the bound of cannot be lowered, even in the special case of four-graphs. It would be interesting to prove Wegner’s conjecture for four-graphs, i.e., to prove that any four-graph can be distance-two nine-colored.

Finally, we’ve conjectured that any bipartite cubic planar graph can be distance-two six-colored (a special case of a conjecture of Hartke, Jahanbekam and Thomas [13]). The hexagonal prism (a cyclic prism with , which is a Goodey graph), actually requires six colors. Hence if our conjecture is true, the bound of cannot be lowered even for Goodey graphs. It would be interesting to prove our conjecture for Goodey graphs, i.e., to prove that any Goodey graph can be distance-two six-colored.

## References

• [1] R.E.L. Aldred, S. Bau, D.A. Holton, and B.D. MacKay. Non-hamiltonian 3-connected cubic planar graphs. SIAM J. Discrete Math. 13:25–32, 2000.
• [2] B. Alspach,. The wonderful Walecki construction. Bull. Inst. Combin. Appl. 52:7–20, 2008.
• [3] D. Barnette. On generating planar graphs. Discrete Math. 7:199–208, 1974.
• [4] D. Barnette. Conjecture 5. Recent Progress in Combinatorics (Ed. W.T. Tutte), Academic Press, New York 343, 1969.
• [5] O.V. Borodin and A.O. Ivanova. 2-distance 4-colorability of planar subcubic graphs with girth at least 22. Discussiones Math. Graph Theory 32:141–151, 2012.
• [6] O.V. Borodin. Colorings of plane graphs: a survey, Discrete Math. 313:517–539, 2013.
• [7] R.L. Brooks, On coloring the nodes of a network. Proc. Cambridge Philos. Soc. 37:194–197, 1941.
• [8] R. Erman, F. Kardoš, J. Miskuf. Long cycles in fullerene graphs. J. Math. Chemistry 46:1103–1111, 2009.
• [9] T. Feder and C. Subi. On Barnette’s conjecture. Electronic Colloquium on Computational Complexity (ECCC) TR06-015, 2006.
• [10] M.R. Garey, D.S. Johnson, and R.E. Tarjan. The planar Hamiltonian circuit problem is NP-complete. SIAM J. Comput. 5:704–714, 1976.
• [11] P.R. Goodey. Hamiltonian circuits in polytopes with even sided faces. Israel J. Math. 22:52–56, 1975.
• [12] P.R. Goodey. A class of Hamiltonian polytopes. J. Graph Theory 1:181–185, 1977.
• [13] S.G. Hartke, S. Jahanbekam, and B. Thomas. The chromatic number of the square of subcubic planar graphs. arXiv:1604.06504.
• [14] F. Havet. Choosability of the square of planar subcubic graphs with large girth. Discrete Math. 309:3353–3563, 2009.
• [15] P. Heggernes and J.A. Telle. Partitioning graphs into generalized dominating sets. Nordic J. Computing 5:128–143, 1998.
• [16] D.A. Holton, B.D. McKay. The smallest non-Hamiltonian 3-connected cubic planar graphs have 38 vertices. J. Combin. Theory B 45:305–319, 1988.
• [17] F. Kardoš. A computer-assisted proof of Barnette-Goodey conjecture: Not only fullerene graphs are Hamiltonian. arXiv math:1409.2440
• [18] X. Lu. A note on 3-connected cubic planar graphs. Discrete Math. 310:2054–2058, 2010.
• [19] J. Malkevitch. Polytopal graphs. in Selected Topics in Graph Theory (L. W. Beineke and R. J. Wilson eds.) 3:169–188, 1998.
• [20] O. Ore. The four colour problem. Academic Press, 1967.
• [21] P.G. Tait. Listing’s topologie. Philosophical Magazine, 5th Series 17:30-46, 1884. Reprinted in Scientific Papers, Vol. II, pp. 85–98.
• [22] C. Thomassen. The square of a planar cubic graph is 7-colorable. manuscript 2006.
• [23] W.T. Tutte. On hamiltonian circuits. J. Lond. Math. Soc. 21:98–101, 1946.
• [24] G. Wegner. Graphs with given diameter and a coloring problem. Technical Report, University of Dortmund, Germany, 1977.