A new edge 12-7 that connects the edges 6-10 and 32-15.
With this case seems that infinite random switches throughout the entire graph do not solve the impasse, which is really really really bad.
A new edge 12-7 that connects the edges 6-10 and 32-15.
With this case seems that infinite random switches throughout the entire graph do not solve the impasse, which is really really really bad.
Experimenting with the Python program, I have found that if you have an F5 impasse, a single switch may not be enough to solve the impasse. It means: counterexample found.
This is a bad news, since I believed that a single switch, on an appropriate edge, could have been the key to solve the theorem.
BUT
Since a limited number of switches still work, I am going to study if two switches, on appropriate edges, may work.
🙂
I have implemented an algorithm that goes really fast coloring the edges of a planar graph.
See this video and then try it youself!
Note about the Python program: To try the Python program you need to have Sage. Follow Sage instructions to install it on your computer: http://www.sagemath.org.
The algorithm considers Tait edge coloring and the equivalency of the 3-edge-coloring (known as Tait coloring) and the 4-face-coloring (the original four color theorem for maps).
The algorithm goes like this:
Note that while rebuilding a map, all Kempe chains are actually Kempe loops!!!
These are the stats:
Almost linear … what do you think?
The first column is the original number of vertices for the planar triangulation from which the dual graph (a cubic planar graph) is computed. The seconds reported above do not consider the time to load or create the imput graph and to compute the planar embedding. You can also upload an already planar embedded graph using the -p option.
The same problem of coloring the egdes using the Sage function edge_coloring() requires very long time. I run 15 tests, and to color random graphs with 196 vertices and 294 edges, took: 7, 73, 54, 65, 216, 142, 15, 14, 21, 73, 24, 15, 32, 72, 232 seconds, for the same case where my algorithm takes less than 1 second: 100 – 196 vertices, 294 edges.
For the F5 case which requires the adjustments, I tried the following:
The only (!?!?!?!?) thing that needs to be proved is that random switches of colors of Kempe loops is always possible to solve any type of impasse. I mean, for now I’m dealing with random attemps, I need to understand how the Kempe loops are related to each other and then find a way to know on which one I need to swap colors.
Something I need to modify about the Python program:
I am also looking for faster algorithms around:
Here is the example of a colored planar graph with 1996 vertices and 2994 edges:
Link to the full resolution image: image
sage 4ct.py -r 100 -o test-196 (sage)
dot -Tpng test-196.dot -o test-196.png (graphwiz)
Implementing, using Sagemath, the algorithm of Kempe reduction and the half Kempe chain color swithing (for Tait coloring), I need to avoid multiple edges and loops … OR I’ll not be able to use functions that need embedding, as for example faces(), is_planar() and others.
Some notes:

This post follows directly the previous one. I’m down to a single case to prove (pag. 3).

I think I should move to Java coding, implementing the entire algorithm: map reduction (removing edges), color reduced map, restore of edges one at a time, adjust the coloring to the case to prove (e2 = red), apply Kc5 color switching, …, apply the half Kempe-cycle color switching.
Notes (pag. 1 and 2):

Second page:

Here there are some results that came out from the study of Kempe chains/cycles (of edges) in Tait coloring of a 3-regular planar graph.
Next is shown an image with a summary of the ideas behind this approach. I didn’t have the time to re-create this into computerized images. I will do it later. Soon will follow the F5 case for the part I’ve been experimenting with success (sub-condition where the two edges lies on two different Kempe-cycle – see below).

Here is the F4 case shown a little better:

And here some deeper details of these ideas.
Theorem: In a well edge-colored (Tait coloring) 3-regular planar graph all Kempe chains are cycles

Picture-01: All Kempe-chains are Kempe-cycles
Steps and results toward a short proof of the 4ct:
If this Example-02 the restored edge (in black) reestablish an F5 face. Both the edges (Green = on the left, Red = on the right) do non lie on the same (G-R)-cycle (CONDITION-2). Similar examples can be created when the two touched edges have the same color. In that case you can consider two different Kempe-chain ((R-x)-chain if the edges are colored Red) or you can easily reconduct that case to the one with different colors

Example-02: Example of restoring an F5
Now the diffucult part of the proof about the F5 case where the two edges do not lie on the same Kempe-cycle.
How can I reconduct a CONDITION-2 (edges NON on the same Kempe-cycle) to a CONDITION-1 (edges on the same Kempe-cycle)?
Finally I bought two books about the four color theorem: “Four Colors Suffice: How the Map Problem Was Solved” by Robin Wilson e Ian Stewart; and the “The Four-Color Theorem: History, Topological Foundations, and Idea of Proof” by Rudolf Fritsch and Gerda Fritsch.
I am currently reading the first one, and I want to revisit the fundamentals by using the method Kempe employed when he believed he had solved the problem.
With these differences: I will approach it removing one edge at a time from F2, F3, F4, or F5 faces (unavoidable set) to reduce the map to two faces (including the ocean). Afterward, I will restore the edges in reverse order, consistently working with 3-regular planar graphs. Instead of applying Kempe’s chain color switching solely to the faces, I will consider Tait coloring of the edges and apply Kempe’s chain color switching to the edges.
Follow the arrow to visualize the steps:

I still think a solution may be found in Kempe chain color swapping … for maps without F2, F3 and F4 faces (or even without this restriction).
Or at least I want to try.
How you can solve the impasses (To be finished):
To explain the possible cases, without lack of generality, I can assume to start with these colors: e1=red, e2=green, e3=blue, e4=red. e4 may also be colored in green, the reasoning will not change much.
A deroute of a chain appears as in the next picture. Consider that deroutes may not work because Chain-B color swapping may change one or more of the three edges e1, e2, e4, and after appying the Chain-B swap, the chain starting with a3, may still end to one to e1, e2, e4. See this post for a real example: here.
About swaps of a partially colored map, I’ve asked a question on mathoverflow … here.
Maybe I was wrong when, in the motivation of the question (mathoverflow), I said that “I found many examples in which Kempe chain color swapping does not work for maps with faces of type F2, F3, F4, but I did not find an example of maps with only F5 or higher“. It seems to be possible also for maps with F2, F3, F4.
I’ll continue to search for counterexample but, for what I’ve seen so far (I tryed about 50 maps) it has been always possible to solve impasses, only proceeding by swapping colors.
This is one of the map that I thought to be a counterexample, but it is not. Its signature is:
Something else to check:
I was experimenting impasses and I found this about spiral chains:
Bad news … to me!
This example it is a counterexample to the hypothesis I was trying to verify!
Map signature: 1b+, 4b+, 6b+, 15b+, 7b-, 14b-, 8b-, 12b-, 13b-, 11b-, 9b-, 8e-, 7e-, 5b-, 6e-, 9e-, 10b-, 5e-, 4e-, 3b-, 10e-, 11e-, 12e-, 3e-, 2b-, 13e-, 14e-, 15e+, 2e+, 1e+
😦
For this example, no Kempe color switching exists along the main chain (b-r) = (1-2-3-4-5-6-7-8) that “divert” it, to make it end at a different vertex than vx. All other chains (*-g) along the main chain (b-r) involve vx or vy.