# 6-critical graphs on the Klein bottle

This is an add-on page for the paper by Ken-ichi Kawarabayashi, Daniel Kral, Jan Kyncl and Bernard Lidicky on 6-critical graphs on the Klein bottle. With the assistance of computer, we have found a complete list of all embeddings of 6-critical graphs on the Klein bottle. The programs used to generate this list can be downloaded from this page.

The process of generating all 6-critical graphs has been split into three steps. We make available a program/programs to solve each of the three steps: generating all k-minimal graphs for k up to 10, generating all 2-cell embeddings of K6 in the Klein bottle, and finally generating 6-critical graphs from K6 by splitting vertices and gluing k-minimal graphs into faces. The details of the whole procedure can be found in our paper which is also available as a technical report of our department. Let us remark that we have independently written two sets of programs implementing all the three steps of the procedure. The programs available at this web-page were written by Bernard Lidicky in C++; the other set of programs was written by Dan Kral in C.

The programs write their output to stdout and information on the progress of computation to stderr. We describe the format of inputs and outputs of our programs in detail on this web-page. For some of the steps, the output of the previous step does not exactly match the input of the program in the next step, but it is easy to modify the output to the required form, e.g., using unix utility `sed'. It is always possible to download both inputs and outputs of our programs in the required form.

All source files, shell script, inputs and outputs for generating all 2-cell embeddings of 6-critical graphs on the Klein bottle can be downloaded as a tar.gz archive.

## Step 1: Generating all k-minimal graphs

First we describe the program for generating all non-trivial k-minimal graphs. This corresponds to Section 3 of our paper. The program was applied for k from 4 to 10. For every k, the program creates a list of all k-minimal graphs that it is expanding during the computation as follows: the cycle of length k is split by a chord into two parts and each is filled with minimal graphs of appropriate (smaller) sizes. Another possibility is, adding a vertex adjacent to three vertices on the boundary and filling the faces of (smaller or equal) sizes with minimal graphs. This step has to be applied for graphs of equal sizes as long as new minimal graphs appear. The program eventually outputs all k-minimal graphs in the following format.
```G:7 6 v: 7
0: 4   1 2 6 5
1: 2   0 2
2: 4   1 3 6 0
3: 3   6 2 4
4: 3   6 3 5
5: 3   6 4 0
6: 5   4 5 0 2 3
```

Each block of the above format describes a single minimal graph. The first line of the block starts with identifier `G:X' where X is replaced by a number identifying the graph starting with 0. Hence last number for k-critical graph is not the number of k-critical graphs but it is 2 less since we started from 0 and skipped the trivial one. The middle number on the first line is k for which the graph is k-minimal. The last number on the line (after v: ) determines the number of vertices. Each of the following lines of the block describe a single vertex: first, the number and the degree of the vertex are given (the vertices are numbered from 0), and they are followed by the neighbors of the vertex in the cyclic order around it. The 6-minimal graph corresponding to the block from the example can be found in the figure below. Another program is used to convert the output of the previous program to the format similar to the final format of embeddings of K6 from the next step. A block representing a k-minimal graph starts with k followed by the number of vertices (v) and faces (f). Each of the following lines describe an inner face of the graph (its number, its size and the list of the vertices on its boundary in a cyclic order but not in some particular orientation); the outer faces is not explicitly described. Note that the outer face is always bounded by the cycle formed by the vertices 0, ..., k-1. Description of our 6-minimal example in the face format follows. Observe that the name of graph is not present there any more.

```G:7 6 v: 7 f: 6
0: 3   2 0 1
1: 3   6 0 2
2: 3   5 0 6
3: 3   6 2 3
4: 3   4 3 6
5: 3   5 4 6
```

### Program sources, inputs and outputs

 Input None Output list of k-minimal graphs Source k-minimal generator source

 Input list of k-minimal graphs Output k-minimal in face representation Source k-minimal to face representation source

## Step 2: Generating all drawings of K6

Next we present the programs for generating all 2-cell embeddings of the complete graph K6 of order six on the Klein bottle. This corresponds to Section 4 of our paper. The generating procedure consists of three separate programs: a program for generating all embedding of K6 with an Eulerian genus 2, a program for checking non-isomorphism of the embeddings and an auxiliary program for outputting the faces of the embeddings.

The outputs of the first two programs consist of lines of the following form:

```0:12345 1:02354 2:04351 3:01524 4:03215 5:04132 00000 1100 001 01 0   G2
```
X:12345 determines a cyclic order of neighbors around the vertex X (the vertices are numbered 0, 1, 2, 3, 4 and 5). The final part of the line then describe the ``orientation reversing'' matrix: 1 represents an edge flipping the orientation (passing through a cross-cap) and 0 an edge preserving the orientation. The matrix for the example line is:
```.00000
0.1100
01.001
010.01
0000.0
00110.
```
Each line ends with ``G2'' indicating that the Eulerian genus of the represented embedding is 2. The program can easily be modified to generate embeddings of a different genus.

The last of the three programs convert the output from the just described format to format where the embeddings are given as boundaries of the faces in the embedding (which is more suitable for manipulation in the remaining). The output of this program is comprised of blocks of the following form.

```G:K6_X -1 v: 6 f: 9
F0: 4   0 1 4 2
F1: 4   0 1 2 5
F2: 4   0 2 1 3
F3: 3   0 3 4
F4: 3   0 4 5
F5: 3   1 3 5
F6: 3   1 4 5
F7: 3   2 3 5
F8: 3   2 3 4
```
The first line of the block starts with a tag ``G:K6_X -1'' which should improve the readability of output (-1 should avoid confusion with embeddings of k-minimal graphs described in the previous section, X is replaced by a number indicating different embeddings of K6). The first line also contains the number of vertices (v - it is always 6) and the number of faces (f - it is always 9). The remaining lines describe the faces - the line starts with an identifier of the face, followed by the face length and the vertices on the boundary (the vertices are numbered starting from 0).

### Program sources, inputs and outputs

 Input None Output K6 embeddings Source K6 generator source

 Input K6 embeddings Output non-isomorhic embedding of K6 Source K6 isomorfer source

 Input non-isomorphic embedding of K6 Output non-isomorhic embedding of K6 as faces Source K6 generator source

## Step 3: Splitting vertices and gluing k-minimal graphs

The final step of our procedure for generating all 6-critical graphs on the Klein bottle consists reversing the reduction operation described in our paper in Section 5. We systematically try to replace each vertex in every embedding of a 6-critical graph on the Klein bottle that we have constructed so far by a path comprised of three vertices with the middle vertex of degree two and then glue some minimal graphs into faces of the obtained graph.

There are two input files for this program. One contains all non-trivial k-minimal graphs for 4<=k<=10 and the other contains the list of all 2-cell embedding of K6 on the Klein bottle. The output of the program are all 2-cell non-isomorphic embeddings of 6-critical graphs on the Klein bottle (which can be obtained by reversing the reduction operation from the initial list of 6-critical graphs) and the list of all non-isomorphic 6-critical graphs. We argue in the paper that no new non-isomorphic embeddings can be obtained from the unique non-2-cell embeddings of K6 on the Klein bottle.

### Program sources, inputs and outputs

 Input embeddings of K6, k-minimal graphs Output 6-critical graphs, drawings of 6-critical graphs Source splitter and gluer

## Results of the computation

Table with number of k-minimal graphs including the trivial ones. The program does not generate the trivial ones and the graphs are numbered from zero. Thus the largest graph ID for k-minimal graphs is smaller by 2.
 k 3 4 5 6 7 8 9 10 # 1 2 4 14 46 291 2124 19876

We found 190 2-cell embeddings of K6 on the Klein bottle but only 7 non-isomorphic.

And the result of gluing is 18 non-isomorphic 2-cell embeddings of 6-critical graphs on the projective plane and 9 non-isomorphic 6-critical graphs. Note that there is also one more embedding of K6 from the projective plane and it is not 2-cell (it is the unique embedding on the projective plane).