Next Article in Journal
Geometrically Constructed Family of the Simple Fixed Point Iteration Method
Previous Article in Journal
Grading Investment Diversification Options in Presence of Non-Historical Financial Information
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Counting Hamiltonian Cycles in 2-Tiled Graphs

by
Alen Vegi Kalamar
1,2,*,†,‡,
Tadej Žerak
1,3 and
Drago Bokal
1,3,4,*,†,‡,§,‖
1
Department of Mathematics and Computer Science, University of Maribor, 2000 Maribor, Slovenia
2
Comtrade Gaming, 2000 Maribor, Slovenia
3
DataBitLab, d.o.o., 2000 Maribor, Slovenia
4
Institute of Mathematics, Physics and Mechanics, University of Ljubljana, 1000 Ljubljana, Slovenia
*
Authors to whom correspondence should be addressed.
Crossing numbers and their applications (ARRS Project Number J1-8130).
Structural, optimization, and algorithmic problems in geometric and topological graph representations (ARRS Project Number J1-2452).
§
Graph Theory (ARRS Program Number P1-0297).
Innovative learning and teaching for quality careers of graduates and excellent higher education (Project INOVUP).
Mathematics 2021, 9(6), 693; https://doi.org/10.3390/math9060693
Submission received: 29 January 2021 / Revised: 7 March 2021 / Accepted: 16 March 2021 / Published: 23 March 2021

Abstract

:
In 1930, Kuratowski showed that K 3 , 3 and K 5 are the only two minor-minimal nonplanar graphs. Robertson and Seymour extended finiteness of the set of forbidden minors for any surface. Širáň and Kochol showed that there are infinitely many k-crossing-critical graphs for any k 2 , even if restricted to simple 3-connected graphs. Recently, 2-crossing-critical graphs have been completely characterized by Bokal, Oporowski, Richter, and Salazar. We present a simplified description of large 2-crossing-critical graphs and use this simplification to count Hamiltonian cycles in such graphs. We generalize this approach to an algorithm counting Hamiltonian cycles in all 2-tiled graphs, thus extending the results of Bodroža-Pantić, Kwong, Doroslovački, and Pantić.

1. Introduction

In 1930, Kuratowski characterized graphs that can be drawn in a plane with no crossings [1]. His research was an opening step for several directions characterizing graph families using forbidden substructures, such as extremal graph theory that forbids any subgraph isomorphic from being in a given graph [2], and the related structural graph theory emanating from forbidding induced subgraphs, for instance, several characterizations of Trotter and Moore [3] as well as perfect graph theorems [4,5]. Robertson, Seymour, and others extended these results to graph minor theory [6,7]. While far from complete, a more detailed review of the related research emanating from Kuratowski theorem is presented in the next section. In this introduction, we only focus on the two topics that are fundamental to the results of our paper, crossing-critical graphs and graph Hamiltonicity.
Observe (as is elaborated in the next section), that Kuratowski graphs can be interpreted as the only two 3-connected 1-crossing-critical graphs. A parallel theorem describing all 2-crossing-critical graphs was established by Bokal, Oporowski, Salazar, and Richter [8], who characterized the complete list of minimal forbidden subdivisions for a graph to be realizable in a plane with only one crossing. They exhibit a significantly richer structure: unlike just two 3-connected 1-crossing-critical graphs, the graphs realizable in a plane with at most one crossing already exhibit infinite families of topologically minimal obstruction graphs. Although it cannot be claimed that all these 2-crossing-critical graphs are Hamiltonian (with Petersen graph being the most known counterexample), the claim is fairly easy to see for large such graphs using the aforementioned characterization of 2-crossing-critical graphs. Hence, almost all of these graphs are Hamiltonian. In this paper, we address a significantly more difficult problem of counting their different Hamiltonian cycles. The interest in understanding the number of different Hamiltonian cycles in various graph families originates from biochemical modelling of the polymers [9], where a collapsed polymer globule is modelled by a Hamiltonian cycle and the number of Hamiltonian cycles corresponds to the entropy of a polymer system in a collapsed but disordered phase. This shows an interesting intuitive duality to counting Eulerian cycles that showed relevance in constructing controlled, de novo protein structure folding [10,11]. In 1990, a characterization of Hamiltonian cycles of the Cartesian product P 4 P n was established [12]. In 1994, Kwong and Rogers developed a matrix method for counting Hamiltonian cycles in P m P n , obtaining exact results for m = 4 , 5 [13]. Their method was extended to arbitrarily large grids by Bodroža-Pantić et al. [14] and by Stoyan and Strehl [15]. Later, Bodroža-Pantić et al. gave some explicit generating functions for the number of Hamiltonian cycles in graphs P m P n and C m P n [16,17]. Earlier, Saburo developed a field theoretic approximation of the number of Hamiltonian cycles in graphs C m C n in [18] as well as in planar random lattices [19]. Fireze et al. considered generating and counting Hamiltonian cycles in random regular graphs [20]. Given these results, we note that our approach renders large 2-crossing-critical graphs to be the first nonplanar graph family for which the number of Hamiltonian cycles can be exactly determined. It may be relevant that the dissertation [21] similarly investigates links between 2-crossing-critical graphs, graph embeddings, and Hamiltonian cycles in higher surfaces.
In addition to an alphabetic description of large 2-crossing-critical graphs that allows for specifying the above formulae and may inspire further investigation of this graph class and ease access to graph-theoretic research building in this next step beyond the Kuratowski theorem, we hence extend this body of research on counting Hamiltonian cycles by going beyond Cartesian products of paths and cycles and apply the matrix method for counting Hamiltonian cycles to general 2-tiled graphs, which by the previously mentioned characterization theorem includes almost all 2-crossing-critical graphs. By allowing for nonplanar graphs in our approach, a new type of Hamiltonian cycle not observed previously appears. We complement the previous approaches of devising generating functions (which is feasible for well-structured graphs, such as aforementioned Cartesian products, or for the expected number of Hamiltonian cycles in random graphs) by an algorithm, which is in the case of 2-crossing-critical graphs implementable in linear time. For certain subfamilies of 2-crossing-critical graphs, the algorithm can even be simplified to a closed formula, using only the counts of specific letters in our alphabetic representation of the 2-crossing-critical graph, thus rendering these graphs the first nonplanar graphs for which an exact number of distinct Hamiltonian cycles is known. Specifically, we constructively prove the following theorems:
Theorem 1.
Let G be a 2-connected 2-crossing-critical graph containing a subdivision H V 10 . There exists an algorithm of linear time complexity in the number of vertices of G that computes the number of Hamiltonian cycles in G.
The theorem has the following easier-to-state corollary:
Corollary 1.
There exists an integer N such that any 2-connected 2-crossing-critical graph G with at least N vertices is Hamiltonian.
As Petersen graph is a 3-connected 2-crossing-critical graph and is not Hamiltonian, containing a V 10 subdivision (or, equivalently, being large) cannot simply be ommited for the above conclusions. For a picture of V 10 , see Figure 1.
The algorithm in Theorem 1 is a special case of the general algorithm from the following theorem:
Theorem 2.
Let T be a finite family of 2-tiles, and let G be a family of cyclizations of finite sequences of such tiles. There exists an algorithm that yields, for each graph G G , the number of distinct Hamiltonian cycles in G. For a fixed set T , the run time of the algorithm is quadratic in the number of tiles (and hence vertices) of G.
The rest of the paper is organized as follows. In the next section, we put the central concept of tiled graphs and crossing-critical graphs into the wider context of graph theory research. We introduce tiles and tiled graphs in Section 3, where a general algorithm for counting Hamiltonian cycles in 2-tiled graphs is presented. In Section 4, we introduce 2-crossing-critical graphs and the recent characterization of large such graphs as 2-tiled graphs. In Section 5, we combine the results by adapting the general counting algorithm to 2-crossing-critical graphs and constructively prove the above key results.

2. Related Research

Kuratowski theorem inspired several characterizations of graph families using forbidden subgraphs, which paved paths to significantly different areas of graph theory. Extremal graph theory is concerned with forbidding any subgraph isomorphic from being in a given graph [2] and maximizing the number of edges under this constraint. Significant structural theory was developed when forbidden subgraphs were replaced by forbidden induced subgraphs, for instance, several characterizations of Trotter and Moore [3] and the remarkable weak and strong perfect graph theorems [4,5].
Interest has also been shown in finding forbidden subgraphs that imply Hamiltonicity of graphs. In 1974, Goodman and Hedetniemi showed that a graph not containing induced K 1 , 3 and K 1 , 3 + e , where e creates a 3-cycle, is Hamiltonian [22]. A series of several similar results was closed in 1997 by Faudree and Gould, who characterized all pairs of graphs such that forbidding their induced presence in a graph implies a graph’s Hamiltonicity [23]. This was via several papers extended to a complete characterization of triples of forbidden graphs implying Hamiltonicity, the final one being [24].
Graph minor theory extended the Kuratowski theorem to higher surfaces, showing that the set of graphs embeddable into any surface can be characterized by a finite set of forbidden minors [7]. The exact characterization was devised by Archdeacon for the projective plane [6], but already on the torus, the number of forbidden minors reached tens of thousands [25]. Mohar devised algorithms to embed graphs on surfaces [26], which was later improved by Kawarabayashi, Mohar, and Reed [27]. Characterizations of graph classes with subdivisions received somewhat less renowned attention. Early on the above path, Chartrand, Geller, and Hedetniemi pointed at some common generalizations of forbidding a small complete graph and a corresponding complete bipartite subgraph as a subdivision, resulting in empty graphs, trees, outerplanar graphs, and planar graphs [28]. That unifying approach apparently did not yield fruitful results, but more recently, Dvořák established a characterization of several graph classes using forbidden subdivisions [29], thus reaching even outside of topological graph theory.
The cornerstone of our contribution is yet another generalization of Kuratowski theorem. Note that the theorem elementarily implies that the two Kuratowski graphs K 5 and K 3 , 3 are the only 3-connected graphs that need at least one crossing to be drawn in a plane, but each their proper subgraph is planar and hence has a strictly smaller crossing number. Furthermore, all the graphs with the latter property can be obtained from them by subdividing their edges. Using the definition from the next section, Kuratowski theorem characterizes all 3-connected 1-crossing-critical graphs and consequently describes all 1-crossing critical graphs as their subdivisions.
It was already known that, contrary to fixed-genus-embeddable graphs, fixed-crossing-number realizable graphs exhibit a richer structure of topologically minimal obstruction graphs, as first demonstrated by Šiřan [30] constructing infinite families of c-crossing-critical graphs. Kochol extended this result to simple, 3-connected graphs [31].
A parallel to this interpretation of Kuratowski theorem but for 2-crossing-critical graphs was established recently by Bokal, Oporowski, Salazar, and Richter [8]. They characterized the complete list of minimal forbidden subdivisions for a graph to be realizable in a plane with only one crossing, i.e., 2-crossing-critical graphs. They showed that all such graphs are either small or 2-connected and obtained from 3-connected ones using subdivisions and similar operations, or 3-connected and obtained similarly as Kochol 2-crossing-critical graphs [31] but using 42 different structures (of which Kochol used just one). Later in this paper, we formalize these structures as tiles.
Tiles as a central tool in graph theory were first formally defined by Pinontoan and Richter [32], who extended the answer to Salazar’s question on average degrees in infinite families of c-crossing-critical graphs [33]. Salazar’s question was resolved by Bokal, again using tiles. They were instrumental in further studies on degrees in crossing critical graphs by Hliněný [34], whose most complete results so far are published in [35]. Most of this desire for understanding the degrees in crossing-critical graphs was inspired by a conjecture of Richter that c-crossing-critical graphs have their maximum degree bounded from above by a function of c. The conjecture was first existentially disproved by Dvořák and Mohar [36]. A constructive counterexample was obtained by Bokal et al. [37], who also showed that bounded degree conjecture holds precisely for c 12 . Instrumental in this result were wedges, a degenerate form of tiles that has yet to be formalized. Tiles, wedges, and planar belts were shown to be (in addition to a small connecting graph) the three key ingredients of large c-crossing-critical graphs by Dvořák, Hliněný, and Mohar [38].
In addition to applications of tiles for studying crossing-critical graphs, Pinontoan and Richter opened another direction of results. They studied the limit crossing number of tiled graphs, showing the existence of a limit crossing number for a periodic family of graphs (in the terms defined later, k-tiled graphs resulting from the cyclizations of repeated joins of a single tile). Richter later asked whether this limit is computable, which was proven by Dvořák and Mohar in [39]. Some further graph invariants on 2-crossing-critical graphs were obtained in parallel with our results and published in [40].
It may be interesting to note that tiles and their joins are a specific kind of labeled graphs and operations on them, as introduced in Lovász’es seminal book on large networks and graph limits [41]. Hence, introductory understanding of the conceptspresented here may motivate researchers in pursuit of that direction. We do not harmonize the notation here, but it may be feasible to do so when extending the theory of tiles to the theory of earlier mentioned wedges.

3. Hamiltonian Cycles in 2-Tiled Graphs

In this section, we introduce the concept of a tile that was introduced in [32] and later redesigned in [42] and applied in [8,35] and the k-tiled graphs. We use the notation from [8]. To facilitate brevity, we have prepared Table A1 with a summary of frequently used notation. It is located in the appendix.
Definition 1.
A tile is a triple T = ( G , x , y ) , consisting of a connected graph G and two sequences x = ( x 1 , x 2 , , x k ) (left wall) and y = ( y 1 , y 2 , , y l ) (right wall) of distinct vertices of G, with no vertex of G appearing in both x and y. If | x | = | y | = k , we call T a k-tile.
We use the following notation when combining tiles:
Definition 2.
1.
The tiles T = ( G , x , y ) and T = ( G , x , y ) are compatible whenever | y | = | x | .
2.
A sequence T = ( T 0 , T 1 , , T m ) of tiles is compatible if, for each i { 1 , 2 , , m } , T i 1 is compatible with T i .
3.
The join of compatible tiles ( G , x , y ) and ( G , x , y ) is the tile T = ( G , x , y ) ( G , x , y ) for which the graph is obtained from disjoint union of G and G by identifying the sequence y term by term with the sequence x .
4.
The join of a compatible sequence T = ( T 0 , T 1 , , T m ) of tiles is defined as T = T 0 T 1 T m .
5.
A tile T is cyclically compatible if T is compatible with itself.
6.
For a cyclically compatible tile T = ( G , x , y ) , the cyclization of T is the graph T obtained by identifying the respective vertices of x with y.
7.
A cyclization of a cyclically compatible sequence of tiles T is defined as T = ( T ) .
8.
A k-tiled graph is a cyclization of a sequence of at least ( k + 1 ) k-tiles.
Lemma 1.
Let C be a Hamiltonian cycle in a 2-tiled graph G = ( T 0 , T 1 , , T m ) . Then, we have the following:
1.
C = i = 0 m ( C T i ) .
2.
C T i is a union of paths and isolated vertices.
3.
Let v be a vertex of a component of C T i . Then, v has degree 2 in C T i or v is a wall vertex.
4.
There are at most two distinct non-degenerate paths in C T i .
5.
If C T i consists of distinct non-degenerate paths P 1 and P 2 , then C T i = P 1 P 2 .
Proof. 
  • C = C G = C i = 0 m T i = Distributive law i = 0 m ( C T i ) .
  • Let K be a component of C T i . As C is a cycle, K is a connected subgraph of C. Then, K is either equal to C, a path, or a vertex. If K = C , then T i contains all the vertices of G, a contradiction to m 2 (in at least one tile, C does not contain all the vertices). The claim follows.
  • Let v be a vertex of C T i of degree different from 2. As maximum degree in C is 2, v has degree 1 or 0. If v is an internal vertex of T i , its degree in C = i = 0 m ( C T i ) is equal to its degree in C T i . This contradicts C being a cycle and the claim follows.
  • By Claim 3, paths start and end in a wall vertex. Each distinct non-degenerate path needs two unique wall vertices, and the claim follows.
  • By Claim 4, P 1 and P 2 contain all the wall vertices. By Claim 3, isolated vertices can only be wall vertices; hence, there are no isolated vertices and C T i = P 1 P 2 .
Corollary 2.
Let C be a Hamiltonian cycle in a 2-tiled graph G = ( T 0 , T 1 , , T m ) and N i be the set of all isolated vertices in C T i . Then, ( C T i ) N i is one of the following:
1.
A path that begins in a vertex of the left wall, ends in a vertex of the right wall, and covers all internal vertices of T i .
2.
A pair of distinct paths for which each begins and ends at opposite walls, span T i , and respect the vertex order of the walls.
3.
A pair of distinct paths for which each begins and ends at opposite walls, span T i , and invert the vertex order of the walls.
4.
An empty set.
5.
A pair of distinct paths for which each begins and ends at the same wall and span T i .
6.
A path that begins and ends at the same wall and covers all internal vertices of T i .
We say that a path “traverses” a 2-tile, if it starts at the left wall and ends at the right wall of a 2-tile. Based on Corollary 2, we define three groups of C-types of tiles as follows:
Definition 3.
Let C be a Hamiltonian cycle in a 2-tiled graph G = ( T 0 , T 1 , , T m ) , x = ( x 1 , x 2 ) be the left, and y = ( y 1 , y 2 ) be the right wall of T i .
1.
If a cycle C traverses T i with a single path and covers all internal vertices of T i , then we say that T i is of zigzagging C-type, of which there exist four kinds, relevant for completing the Hamiltonian cycles between the tiles.
First, T i is of zigzagging C-type { x 3 j } { y 3 k } if C T i contains a single path P, the endvertices of P are vertices x j and y k of distinct walls of T i , and P contains the non-endvertex wall vertices x 3 j , y 3 k . If either wall vertex that is not an endvertex of P is not contained in P, then C T i contains a path P and these vertices as isolated vertex components. We denote such isolated components using an overline, leading to zigzagging C-types { x 3 j } { y ¯ 3 k } , { x ¯ 3 j } { y 3 k } , { x ¯ 3 j } { y ¯ 3 k } .
2.
If a cycle C traverses T i with a pair of distinct traversing paths that span T i , then we say that T i is of traversing C-type.
(a)
T i is of aligned (Aligned pairs of traversing paths were introduced in [8].) traversing C-type = if C T i contains a pair of distinct paths P 1 and P 2 , the endvertices of P 1 are x 1 and y 1 , and the endvertices of P 2 are x 2 and y 2 .
(b)
T i is of twisted (Twisted pairs of traversing paths were introduced in [8].) traversing C-type × if C T i contains a pair of distinct paths P 1 and P 2 , the endvertices of P 1 are x 1 and y 2 , and the endvertices of P 2 are x 2 and y 1 .
3.
If a cycle C does not traverse T i , then we say that T i is of flanking C-type.
(a)
T i is of flanking C-type ∅ if C T i is an empty graph spanned by { x 1 , x 2 , y 1 , y 2 } .
(b)
T i is of flanking C-type ‖ if C T i contains a pair of distinct paths P 1 and P 2 , the endvertices of P 1 are x 1 and x 2 , and the endvertices of P 2 are y 1 and y 2 .
(c)
T i is of flanking C-type | { y 1 , y 2 } if C T i contains a single path P, the endvertices of P are x 1 , x 2 of the same wall of T i , and P contains the non-endvertex wall vertices y 1 , y 2 . If either wall vertex that is not endvertex of P is not contained in P, then C T i contains a path P and these vertices as isolated components. We denote this using an overline, leading to flanking C-types | { y ¯ 1 , y 2 } , | { y 1 , y ¯ 2 } , | { y ¯ 1 , y ¯ 2 } . The respective notations for flanking C-types of P with endvertices y 1 , y 2 are { x 1 , x 2 } | , { x ¯ 1 , x 2 } | , { x 1 , x ¯ 2 } | , { x ¯ 1 , x ¯ 2 } | .
We denote the set of all possible zigzagging C-types using Λz, the set of all possible traversing C-types using Λt, and the set of all possible flanking C-types using Λf. Finally, we set Λ = Λ z Λ t Λ f .
We refer to C-types by their group name or by their notation. The first type of reference is used in the case of the reference to the whole group of C-types, the second one is used in the case of the reference to a specific C-type.
Lemma 2.
Let C be a Hamiltonian cycle in a 2-tiled graph G = ( T 0 , T 1 , , T m ) . Then, precisely one of the following holds:
1.
i : T i is of zigzagging C-type.
2.
! i { 0 , 1 , , m } : T i is of flanking C-type ‖ and j { 0 , 1 , , m } { i } , T j is of traversing C-type.
3.
! i { 0 , 1 , , m } : T i and T i + 1 are of compatible flanking C-type of form | { x , y } and { z , w } | , respectively, and j { 0 , 1 , , m } { i , i + 1 } , T j is of traversing C-type.
4.
! i { 0 , 1 , , m } : T i , T i + 1 , a n d T i + 2 are of flanking C-types | { y 1 , y 2 } , ∅, { x 1 , x 2 } | , respectively, and j { 0 , 1 , , m } { i 1 , i , i + 1 } , T j is of traversing C-type.
5.
i : T i is of traversing C-type, where the number of indices i of tiles of traversing C-type × is odd.
Proof. 
  • We prove that, if T i is of zigzagging C-type, then the same holds for T i 1 and T i + 1 . Suppose that T i is of zigzagging C-type. Then, T i has the property that exactly one of its left and one of its right wall vertices have a degree 1 in C T i (the ones that are endvertices of the path from the left to right walls). Because the degree of every vertex in C is 2, the left wall vertex has degree 1 in C T i 1 and the right wall vertex has degree 1 in C T i + 1 . Because the degree of every vertex in C is 2, other wall vertices are either of degree 0 (isolated vertex) or 2 (vertex is part of a path) in C T i . If a wall vertex is of degree 0 (2) in C T i , then its degree in C T i 1 (left wall vertex of T i ) or in C T i + 1 (right wall vertex of T i ) is 2 (0). Hence, based on Corollary 2, T i 1 and T i + 1 are of zigzagging C-type. By extending the argument to their neighbors, we establish Claim 1 of Lemma 2. For the rest of the proof, we may therefore assume that none of the tiles are of zigzagging C-type.
  • Let T i be of C-type ‖. Let P 1 P 2 be paths in C T i . Assume without loss of generality that P 1 starts in x 1 i and ends in x 2 i and that P 2 starts in y 1 i and ends in y 2 i . Because m 2 , C P 1 P 2 = Q 1 Q 2 , where Q 1 , Q 2 are paths in T i + 1 T m T 0 T i 1 , which start in y 1 i , y 2 i and end in x 1 i , x 2 i , respectively. Then, j { 0 , 1 , , m } { i } , C T j = ( C P 1 P 2 ) T j = ( Q 1 Q 2 ) T j = Distributive law ( Q 1 T j ) ( Q 2 T j ) . For k { 1 , 2 } , Q k T j is nontrivial and connected; otherwise, Q k would not be connected. Hence, ( Q 1 T j ) , ( Q 2 T j ) are vertex disjoint paths in T j that cover all internal vertices (C is a Hamiltonian cycle) with endvertices in the opposite walls. Therefore, T j is of traversing C-type. We established Claim 2 of Lemma 2, and for the rest of the proof, we may assume that none of the tiles is of C-type ‖.
  • Let T i be of C-type λ { | { y ¯ 1 , y 2 } , | { y 1 , y ¯ 2 } , | { y ¯ 1 , y ¯ 2 } } . Then, C T i consists of some isolated vertices (candidates are y 1 i , y 2 i ) and path P i . Because any isolated vertex of C T i is part of a path of a neighbouring tile (in this case, T i + 1 ) and is not the endvertex of this path, there is a path P i + 1 in C T i + 1 for which the endvertices are y 1 i + 1 , y 2 i + 1 and covers possible isolated nodes y 1 i = x 1 i + 1 , y 2 i = x 2 i + 1 of a tile T i . Hence, T i + 1 is of compatible C-type μ { { x 1 , x ¯ 2 } | , { x ¯ 1 , x 2 } | , { x 1 , x 2 } | } .
    We now suppose that T i is of C-type | { y 1 , y 2 } and that T i + 1 is not of C-type ∅. Then, C T i + 1 consists of isolated nodes y 1 i = x 1 i + 1 , y 2 i = x 2 i + 1 , and path P i + 1 , where P i + 1 is a path for which the endvertices are y 1 i + 1 , y 2 i + 1 . Hence, T i + 1 is of C-type { x ¯ 1 , x ¯ 2 } | .
    Because m 2 , in both cases, C P i P i + 1 = Q 1 Q 2 , where Q 1 , Q 2 are paths in T i + 2 T m T 0 T i 1 , which start in y 1 i + 1 , y 2 i + 1 and end in x 1 i , x 2 i . Then, j { 0 , 1 , , m } { i , i + 1 } , C T j = ( C P i P i + 1 ) T j = ( Q 1 Q 2 ) T j = Distributive law ( Q 1 T j ) ( Q 2 T j ) and (similarly as in Item 2 of the proof of Lemma 2) T j is of traversing C-type. We established Claim 3 of Lemma 2, and for the rest of the proof, we may assume that each tile of C-type | { y 1 , y 2 } has an adjacent tile of C-type ∅.
  • Let T i be of C-type | { y 1 , y 2 } and T i + 1 be of C-type ∅. Then, there exists a path P i in C T i that covers y 1 i , y 2 i . Because y 1 i + 1 , y 2 i + 1 are isolated vertices in C T i + 1 , there is a path P i + 2 in C T i + 2 for which the endvertices are y 1 i + 2 , y 2 i + 2 and covers these isolated nodes y 1 i + 1 = x 1 i + 2 , y 2 i + 1 = x 2 i + 2 . Hence, T i + 2 is of C-type { x 1 , x 2 } | . Because m 2 , C P i P i + 2 = Q 1 Q 2 , where Q 1 , Q 2 are paths in T i + 3 T m T 0 T i 1 , which start in y 1 i + 2 , y 2 i + 2 and end in x 1 i , x 2 i . Then, j { 0 , 1 , , m } { i , i + 1 , i + 2 } , C T j = ( C P i P i + 2 ) T j = ( Q 1 Q 2 ) T j = Distributive law ( Q 1 T j ) ( Q 2 T j ) and (similarly as in Item 2 of the proof of Lemma 2) T j is of traversing C-type. We established Claim 4 of Lemma 2, and for the rest of the proof, we may assume that there are no tiles of C-type of form | { x , y } .
  • Assume now that there is a tile T i of C-type of form { z , w } | . Then, as we assumed that there are no tiles of C-type of form | { x , y } , a symmetric argument to Item 3 of the proof of Lemma 2 implies T i 1 is of C-type ∅ (hence, T i can only be of C-type { x 1 , x 2 } | ). However, then a symmetric argument to Item 4 of the proof of Lemma 2 implies that T i 2 is of C-type | { y 1 , y 2 } , a contradiction to the assumption that implies all tiles are either of C-type ∅ or traversing C-type.
    If there is at least one tile T i of C-type ∅, then C T i + 1 T m T 0 T i 1 consists of at least two disconnected paths Q 1 and Q 2 . However, as C only intersects T i in wall vertices, C is equal to C T i + 1 T m T 0 T i 1 , a contradiction implying that all the tiles are of traversing C-types.
    The remaining case is that i : T i is of traversing C-type. Therefore, i : C T i = P 1 i P 2 i , where each path starts in a left wall vertex and ends in a right wall vertex. Without loss of generality, we may assume that, k { 1 , 2 } , P k 0 , P k 1 , P k m are such that j { 0 , 1 , , m } , P k j ends in same vertex as P k j + 1 starts (if not, we can reindex them). Without loss of generality, we may assume that P 1 0 starts in x 1 0 and P 2 0 in x 2 0 .
    Each tile of C-type × implies that the path moves from the top left wall vertex to the bottom right wall vertex and from the bottom left wall vertex to the top right wall vertex. In case of an even number of tiles T i of C-type ×, x 1 0 P 1 0 P 1 1 P 1 m x 1 0 and x 2 0 P 2 0 P 2 1 P 2 m x 2 0 are distinct cycles. When this number is odd, x 1 0 P 1 0 P 1 1 P 1 m x 2 0 P 2 0 , P 2 1 , P 2 m x 1 0 is a Hamiltonian cycle.
Hamiltonian cycles of types 2–4 from Lemma 2 are of similar construction, so we use the same name for all of them.
Definition 4.
We define names for types of Hamiltonian cycle from Lemma 2: zigzagging Hamiltonian cycles (type 1), flanking Hamiltonian cycles (types 2–4), and traversing Hamiltonian cycles (type 5).
Definition 5.
Let { T i , T i + 1 , , T j } be a sequence of 2-tiles in a 2-tiled graph G = ( T 0 , T 1 , , T m ) , where indices i and j are considered cyclically. Then,
K ( { T i , T i + 1 , , T j } ) = { C T i T i + 1 T j | C is a Hamiltonian cycle in G } .
Using Definition 5, we define as follows:
Definition 6.
Let G = ( T 0 , T 1 , , T m ) be a 2-tiled graph. For λ Λ and i { 0 , 1 , , m } , let
a λ i = | { C T i K ( { T i } ) | T i be of C type λ } | .
We prove that the number of Hamiltonian cycles of each type can be counted efficiently. In the counting of Hamiltonian cycles that follows, index 0 is used for the starting condition of the recursive counting, i.e., when there are no tiles. We adjust to this notation by using a one based labelling for tiles throughout the rest of Section 2. By definition of cyclization, T m + 1 = T 1 .

3.1. Counting Traversing Hamiltonian Cycles

Lemma 3.
Let T be a fixed finite family of 2-tiles, and let G = ( T 1 , T 2 , , T m ) , where i : T i T . Traversing Hamiltonian cycles in G can be counted in time O ( m ) .
Proof. 
For i { 1 , 2 , , m } , let
c even i = | { C T 1 T 2 T i K ( { T 1 , T 2 , , T i } ) | even number of tiles of C type × , all other of C type = } | , c odd i = | { C T 1 T 2 T i K ( { T 1 , T 2 , , T i } ) | odd number of tiles of C type × , all other of C type = } | .
We define starting condition c 0 as
c 0 = def [ 1 0 ] T ,
because, in an empty graph, there are zero (even number) tiles of C-type ×. Then, for each i { 1 , 2 , , m } :
c e v e n i c o d d i = a = i a × i a × i a = i c e v e n i 1 c o d d i 1 ,
c i = R i · c i 1 .
Hence,
c m = R m · R m 1 R 1 · c 0 .
By Lemma 2, the number of traversing Hamiltonian cycles in G is equal to c o d d m (the combination of tiles with an even number of tiles of C-type × gives us two distinct cycles that contain all vertices of a 2-tiled graph). For a fixed family of 2-tiles, we precalculate matrices R i . The time complexity to compute the product R m · R m 1 R 1 and then the number c o d d m is O ( m ) . □

3.2. Counting Flanking Hamiltonian Cycles

Definition 7.
We say that a cycle turns around in a 2-tile if there exist two vertex disjoint paths, one with both endvertices in the left wall and the second one with both endvertices in the right wall, that cover all internal vertices of a 2-tile.
Lemma 4.
Let T be a fixed finite family of 2-tiles, and let G = ( T 1 , T 2 , , T m ) , where i : T i T , and l { 0 , 1 , 2 } . Flanking Hamiltonian cycles that turn around in the join of ( l + 1 ) consecutive tiles can be counted in time O ( m 2 ) . In the case where the corresponding matrices R j , j { 1 , 2 , , m } , are invertible, we can count them in time O ( m ) .
Proof. 
For i { 1 , 2 , , m } , let
  • T i i + l = T i T i + 1 T i + l ,
  • a i i + l be number of distinct possibilities for T i , T i + 1 , , T i + l to be of compatible flanking C-types to turn around a cycle in T i , i + l .
To get the number of flanking Hamiltonian cycles that turn around in T i , i + l , i { 1 , , m } , we do the following:
  • We calculate the value a i , i + l .
  • Using the idea from the proof for traversing Hamiltonian cycles over the sequence ( T i + l + 1 , , T m , T 1 , T i 1 ) , we get
    c i + l + 1 , i 1 = R i 1 R 1 · R m R i + l + 1 · c 0 ,
    where c 0 is as in (1). Then, c e v e n i + l + 1 , i 1 presents the number of different combinations of C T i + l + 1 T m T 1 T i 1 with an even number of tiles of traversing C-type × and c o d d i + l + 1 , i 1 presents the number of different combinations of C T i + l + 1 T m T 1 T i 1 with an odd number of tiles of traversing C-type ×.
  • The number of Hamiltonian cycles turning around in T i , i + l is equal to
    a i , i + l · ( c e v e n i + l + 1 , i 1 + c o d d i + l + 1 , i 1 ) .
Hence, the total number of Hamiltonian cycles turning around in the join of ( l + 1 ) consecutive tiles in graph G is equal to
i = 1 m a i , i + l · ( c e v e n i + l + 1 , i 1 + c o d d i + l + 1 , i 1 ) .
Because there are finitely many different tiles and l is a constant, values a i , i + l and matrices R i can be precalculated. The time complexity to compute the product R i 1 R 1 · R m R i + l + 1 and then the number c e v e n i + l + 1 , i 1 + c o d d i + l + 1 , i 1 is O ( m ) . Hence, to get the number a i , i + l · ( c e v e n i + l + 1 , i 1 + c o d d i + l + 1 , i 1 ) , we need O ( m ) time. For m such numbers, the total time complexity is O ( m 2 ) .
Suppose that every matrix R j , j { 1 , 2 , , m } , is invertible ( ( a = j ) 2 ( a × j ) 2 0 ) and let
c m = R m R 1 · c 0
be as in (3). We can get the value c e v e n i + l + 1 , i 1 + c o d d i + l + 1 , i 1 by solving the equation
c m = R i + l R i + 1 · R i · c i + l + 1 , i 1 .
Because matrices R j , j { 1 , 2 , , m } are invertible, we get
c i + l + 1 , i 1 = R i 1 · R i + 1 1 R i + l 1 · c m .
In this case, we need O ( m ) time to get c m . We need only O ( 1 ) additional time to compute each c i + l + 1 , i 1 and then the number c e v e n i + l + 1 , i 1 + c o d d i + l + 1 , i 1 and hence O ( m ) to compute them all. The total time complexity in this case is then O ( m ) . □
Lemma 5.
Let T be a fixed finite family of 2-tiles, and let G = ( T 1 , T 2 , , T m ) , where i : T i T . Flanking Hamiltonian cycles in G can be counted in time O ( m 2 ) . In the case where the corresponding matrices R j , j { 1 , 2 , , m } , are invertible, we can count them in time O ( m ) .
Proof. 
We can get flanking Hamiltonian cycles in three ways:
  • cycle turns around in one tile,
  • cycle turns around in two consecutive tiles, and
  • cycle turns around in three consecutive tiles.
  • Counting flanking Hamiltonian cycles that turn around in one tile:
    Flanking Hamiltonian cycles that turn around in one tile consist of two parts. One tile is of C-type ‖; other tiles are of traversing C-type. Using Lemma 4 with l = 0 and a i , i + l = a i , we get the desired result.
  • Counting flanking Hamiltonian cycles that turn around in two consecutive tiles:
    In consecutive tiles T i and T i + 1 , we have y 1 i = x 1 i + 1 and y 2 i = x 2 i + 1 . Let a f l a n k i n k i i + 1 denote the number of distinct possibilities for T i and T i + 1 to be of compatible flanking C-types of the forms | { x , y } and { z , w } | . Then,
    a ] [ i , i + 1 = a | { y 1 , y 2 } i · a { x ¯ 1 , x ¯ 2 } | i + 1 + a | { y 1 , y ¯ 2 } i · a { x ¯ 1 , x 2 } | i + 1 + a | { y ¯ 1 , y 2 } i · a { x 1 , x ¯ 2 } | i + 1 + a | { y ¯ 1 , y ¯ 2 } i · a { x 1 , x 2 } | i + 1 .
    Flanking Hamiltonian cycles that turn around in two consecutive tiles consist of two parts. In consecutive tiles, compatible C-types of forms | { x , y } and { z , w } | are used and other tiles are of traversing C-type. Using Lemma 4 with l = 1 and a i , i + l = a ] [ i , i + 1 , we get the desired result.
  • Counting flanking Hamiltonian cycles that turn around in three consecutive tiles:
    Considering three consecutive tiles T i , T i + 1 , and T i + 2 implies y 1 i = x 1 i + 1 , y 2 i = x 2 i + 1 , y 1 i + 1 = x 1 i + 2 , and y 2 i + 1 = x 2 i + 2 . Let a f l a n k i n k i i + 1 i + 2 denote the number of distinct possibilities to turn around in three consecutive tiles T i , T i + 1 , and T i + 2 . Then,
    a ] [ i , i + 1 , i + 2 = a | { y 1 , y 2 } i · a i + 1 · a { x 1 , x 2 } | i + 2 ,
    where
    a i + 1 = 1 ; there is no internal vertex in the tile T i + 1 0 ; there is an internal vertex in the tile T i + 1 .
    Flanking Hamiltonian cycles that turn around in three consecutive tiles consist of two parts. In consecutive tiles T i , T i + 1 , and T i + 2 , respectively, the C-types that are used are | { y 1 , y 2 } , ∅, and { x 1 , x 2 } | . Other tiles are of traversing C-type. Using Lemma 4 with l = 2 and a i , i + l = a ] [ i , i + 1 , i + 2 , we get the desired result.

3.3. Counting Zigzagging Hamiltonian Cycles

Lemma 6.
Let T be a fixed finite family of 2-tiles, and let G = ( T 1 , T 2 , , T m ) , where i : T i T . Zigzagging Hamiltonian cycles in G can be counted in time O ( m ) .
Proof. 
We observe that there exist four possibilities for covering wall vertices of the same wall in a 2-tile of zigzagging C-type from Definition 3:
  • x 1 is an endvertex of a path and x 2 is part of a path (notation ( x 1 , x 2 ) ),
  • x 2 is an endvertex of a path and x 1 is part of a path (notation ( x 2 , x 1 ) ),
  • x 1 is an endvertex of a path and x 2 is an isolated vertex (notation ( x 1 , x ¯ 2 ) ),
  • x 2 is an endvertex of a path and x 1 is an isolated vertex (notation ( x 2 , x ¯ 1 ) ).
For i { 1 , 2 , , m } and ( k , l ) { ( x 1 , x 2 ) , ( x 2 , x 1 ) , ( x 1 , x ¯ 2 ) , ( x 2 , x ¯ 1 ) } , let
c ( k , l ) i = | { C T 1 T 2 T i K ( { T 1 , T 2 , , T i } ) | T i ends with type ( k , l ) } | .
In adjacent tiles T i and T i + 1 , we have y 1 i = x 1 i + 1 and y 2 i = x 2 i + 1 . We define different starting conditions c 0 , dependent on the starting type ( k , l ) in the first tile (in this notation T 1 ):
  • for ( k , l ) = ( x 1 , x 2 ) :
    c ( x 1 , x 2 ) 0 = 1 0 0 0 T ,
  • for ( k , l ) = ( x 2 , x 1 ) :
    c ( x 2 , x 1 ) 0 = 0 1 0 0 T ,
  • for ( k , l ) = ( x 1 , x ¯ 2 ) :
    c ( x 1 , x ¯ 2 ) 0 = 0 0 1 0 T ,
  • for ( k , l ) = ( x 2 , x ¯ 1 ) :
    c ( x 2 , x ¯ 1 ) 0 = 0 0 0 1 T .
For each i { 1 , 2 , , m } , we get
c ( y 1 , y 2 ) i c ( y 2 , y 1 ) i c ( y 1 , y ¯ 2 ) i c ( y 2 , y ¯ 1 ) i = a { x ¯ 2 } { y 2 } i a { x ¯ 1 } { y 2 } i a { x 2 } { y 2 } i a { x 1 } { y 2 } i a { x ¯ 2 } { y 1 } i a { x ¯ 1 } { y 1 } i a { x 2 } { y 1 } i a { x 1 } { y 1 } i a { x ¯ 2 } { y ¯ 2 } i a { x ¯ 1 } { y ¯ 2 } i a { x 2 } { y ¯ 2 } i a { x 1 } { y ¯ 2 } i a { x ¯ 2 } { y ¯ 1 } i a { x ¯ 1 } { y ¯ 1 } i a { x 2 } { y ¯ 1 } i a { x 1 } { y ¯ 1 } i c ( x 1 , x 2 ) i 1 c ( x 2 , x 1 ) i 1 c ( x 1 , x ¯ 2 ) i 1 c ( x 2 , x ¯ 1 ) i 1 ,
c i = Z i · c i 1 .
Then,
c m = Z m · Z m 1 Z 1 · c 0 .
For each starting type ( k , l ) , we get the equation
c ( k , l ) m = Z m · Z m 1 Z 1 · c ( k , l ) 0 .
Because of the definition of cyclization, we get zigzagging Hamiltonian cycles if we have a combination of tile types with compatible starting type in tile T 1 and ending type in tile T m (we can combine them to cycles). Hence, the number of zigzagging Hamiltonian cycles in a graph G is equal to
c ( x 1 , x 2 ) ( x 1 , x ¯ 2 ) m + c ( x 2 , x 1 ) ( x 2 , x ¯ 1 ) m + c ( x 1 , x ¯ 2 ) ( x 1 , x 2 ) m + c ( x 2 , x ¯ 1 ) ( x 2 , x 1 ) m ,
which is equal to
t r ( Z m · Z m 1 Z 1 ) .
To compute this number, we have to efficiently calculate matrices Z i . Because there is a finite number of different tiles, we can precompute them independently from m. The time complexity to compute the product Z m · Z m 1 Z 1 and then the number t r ( Z m · Z m 1 Z 1 ) is O ( m ) . □
Theorem 2.
Let T be a finite family of 2-tiles, and let G be a family of cyclizations of finite sequences of such tiles. There exists an algorithm that yields, for each graph G G , the number of distinct Hamiltonian cycles in G. For a fixed set T , the running time of the algorithm is quadratic in the number of tiles (and hence vertices) of G.
Proof. 
By Lemma 2, we know that there exist three types of Hamiltonian cycles in such a graph (traversing, flanking, and zigzagging). We proved that traversing and zigzagging Hamiltonian cycles can be counted in time O ( m ) (Lemma 3 and Lemma 6). Flanking Hamiltonian cycles can be counted in time O ( m 2 ) (Lemma 5). For adding all three counters, we need O ( 1 ) additional time and the theorem holds. □

4. Large 2-Crossing-Critical Graphs as 2-Tiled Graphs

In this section, we introduce 2-crossing-critical graphs and their characterization from [8]. We continue with the introduction of an alphabet describing the tiles, which are the construction parts of large 2-crossing-critical graphs.

4.1. Characterization of 2-Crossing-Critical Graphs

Definition 8.
1.
Crossing number c r ( G ) of a graph G is the lowest number of edge crossings of a plane drawing of the graph G.
2.
For a positive integer c, a graph G is c-crossing-critical if the crossing number c r ( G ) is at least c but every proper subgraph H of G has c r ( H ) < c .
Theorem 3
([8], Classification of 2-crossing-critical graphs). Let G be a 2-crossing-critical graph with a minimum degree of at least 3. Then, one of the following holds:
1.
G is 3-connected, contains a subdivision of V 10 , and has a very particular twisted Möbius band tile structure, with each tile isomorphic to one of 42 possibilities. All such structures are 3-connected and 2-crossing-critical.
2.
G is 3-connected, does not have a subdivision of V 10 , and has at most 3 million vertices.
3.
G is not 3-connected and is one of 49 particular examples.
4.
G is 2-but not 3-connected and is obtained from a 3-connected, 2-crossing-critical graph by replacing digons by digonal paths.

4.2. Construction of Large 2-Crossing-Critical Graphs

Definition 9.
1.
For a sequence x, x ¯ denotes the reversed sequence.
2.
(a) The right-inverted tile of a tile T = ( G , x , y ) is the tile T = ( G , x , y ¯ ) .
(b) The left-inverted tile of a tile T = ( G , x , y ) is the tile T = ( G , x ¯ , y ) .
(c) The inverted tile of a tile T = ( G , x , y ) is the tile T = ( G , x ¯ , y ¯ ) .
3.
The set S of tiles consists of those tiles obtained as combinations of two frames, shown in Figure 2, and 13 pictures, shown in Figure 3, in such a way that a picture is inserted into a frame by identifying the two geometric squares. (This typically involves subdividing the frame’s square.) A given picture may be inserted into a frame either with the given orientation or with a 180 rotation.
4.
The set T ( S ) consists of all graphs of the form ( ( T ) ) , where T is a sequence ( T 0 , T 1 , T 2 , , T 2 m 1 , T 2 m ) such that m 1 and i : T i S .
Large 2-crossing-critical graphs are described in Item 1 of Theorem 3. Item 3 of Definition 9 describes the set of tiles (see Figure 4 for example) used in the construction of large 2-crossing-critical graphs as described in Item 4 (see Figure 5 for example).

4.3. The Alphabet Describing Tiles

In [43], the reader can find an alphabet to describe tiles in large 2-crossing-critical graphs. There are four attributes that describe a tile:
  • top path P t : Describes the top path of the tile. P t { D , A , V , B , H } (see Figure 6 and Figure 7).
  • identification I d : Describes if top and bottom paths of the tile intersect. I d { I , } (see Figure 8).
  • bottom path P b : Describes the bottom path of the tile. P b { D , A , V , B , } (see Figure 9).
  • frame F r : Describes the frame used for the tile. F r { L , d L } (see Figure 10).
Using this notation, each tile T S has its own signature:
s i g ( T ) = P t I d P b F r .
If some attribute is equal to ∅, it is omitted in the signature. For a graph G T ( S ) , G = ( ( T ) ) , where T = ( T 0 , T 1 , T 2 , , T 2 m 1 , T 2 m ) , we introduce a signature in a natural way:
s i g ( G ) = s i g ( T 0 ) s i g ( T 1 ) s i g ( T 2 m 1 ) s i g ( T 2 m ) .
In connection with the introduced signature, we later use the following notation:
  • for X { B , D , A , V , H , I , d } , #X is the number of occurrences of X in s i g ( G ) ;
  • for j { 0 , 1 , , 2 m } and X { B , D , A , V , H , I , d } , # j X is the number of occurrences of X in s i g ( T j ) ; and
  • for j { 0 , 1 , , 2 m } , p { P t , P b } and X { B , D , A , V } , # j p X is the number of occurrences of X as s i g ( T j ) p .

5. Hamiltonian Cycles in Large 2-Crossing-Critical Graphs

In this section, we use the fact that large 2-crossing-critical graphs are a special case of 2-tiled graphs with a finite set of tiles to efficiently count Hamiltonian cycles with the use of algorithms from Section 3.
Remark 1.
In the construction of large 2-crossing-critical graphs, degree one vertices of adjacent tiles that are to be identified are suppressed after identification so that there is no degree 2 vertex in G (see [8] for details and Figure 5 for example). Because of this, we define new types of frames, which are obtained from original frames by removing the tail of a frame (see Figure 11). We use these frames for constructing tiles in S . Then, the cyclization of old tiles with additional suppression of a vertex is equivalent to the cyclization of new tiles (see Figure 12 for example). Note that all old graphs are the same as new ones, but the new tiles are not 2-degenerate; hence, for this method of construction of large 2-crossing-critical graphs, Theorem 2.18 from [8] does not yield 2-crossing-criticality. Each tile in a new set S is a 2-tile, and large 2-crossing-critical graphs are obtained by cyclization of at least three such 2-tiles. Therefore, by Definition 2, they are 2-tiled graphs. Because of that, we can use the algorithms from Section 3 to count Hamiltonian cycles (efficiently).
Let
R = a = a × a × a =
and
Z = a { x ¯ 2 } { y 2 } a { x ¯ 1 } { y 2 } a { x 2 } { y 2 } a { x 1 } { y 2 } a { x ¯ 2 } { y 1 } a { x ¯ 1 } { y 1 } a { x 2 } { y 1 } a { x 1 } { y 1 } a { x ¯ 2 } { y ¯ 2 } a { x ¯ 1 } { y ¯ 2 } a { x 2 } { y ¯ 2 } a { x 1 } { y ¯ 2 } a { x ¯ 2 } { y ¯ 1 } a { x ¯ 1 } { y ¯ 1 } a { x 2 } { y ¯ 1 } a { x 1 } { y ¯ 1 }
be matrices of tiles from S (R is from Equation (2) and Z from Equation (4)).
Remark 2.
In the construction of large 2-crossing-critical graphs, tiles at odd index (even index in algorithms) are inverted (see Item 4 of Definition 9). The matrices in the algorithms for such tiles (inverted ones) can be obtained from the original ones in time O ( 1 ) :
R = a = a × a × a = = a = a × a × a = = R ,
Z = a { x ¯ 2 } { y 2 } a { x ¯ 1 } { y 2 } a { x 2 } { y 2 } a { x 1 } { y 2 } a { x ¯ 2 } { y 1 } a { x ¯ 1 } { y 1 } a { x 2 } { y 1 } a { x 1 } { y 1 } a { x ¯ 2 } { y ¯ 2 } a { x ¯ 1 } { y ¯ 2 } a { x 2 } { y ¯ 2 } a { x 1 } { y ¯ 2 } a { x ¯ 2 } { y ¯ 1 } a { x ¯ 1 } { y ¯ 1 } a { x 2 } { y ¯ 1 } a { x 1 } { y ¯ 1 } = a { x ¯ 1 } { y 1 } a { x ¯ 2 } { y 1 } a { x 1 } { y 1 } a { x 2 } { y 1 } a { x ¯ 1 } { y 2 } a { x ¯ 2 } { y 2 } a { x 1 } { y 2 } a { x 2 } { y 2 } a { x ¯ 1 } { y ¯ 1 } a { x ¯ 2 } { y ¯ 1 } a { x 1 } { y ¯ 1 } a { x 2 } { y ¯ 1 } a { x ¯ 1 } { y ¯ 2 } a { x ¯ 2 } { y ¯ 2 } a { x 1 } { y ¯ 2 } a { x 2 } { y ¯ 2 } = 0 1 0 0 1 0 0 0 0 0 0 1 0 0 1 0 · Z · 0 1 0 0 1 0 0 0 0 0 0 1 0 0 1 0 = X · Z · X .
Remark 3.
In the construction of large 2-crossing-critical graphs, there is a twist in connecting the last and the first tiles (see Item 4 of Definition 9).
The matrices in the algorithms for the last tile (the right-inverted one) can be obtained from the original one in time O ( 1 ) :
R = a = a × a × a = = a × a = a = a × = 0 1 1 0 · R ,
Z = a { x ¯ 2 } { y 2 } a { x ¯ 1 } { y 2 } a { x 2 } { y 2 } a { x 1 } { y 2 } a { x ¯ 2 } { y 1 } a { x ¯ 1 } { y 1 } a { x 2 } { y 1 } a { x 1 } { y 1 } a { x ¯ 2 } { y ¯ 2 } a { x ¯ 1 } { y ¯ 2 } a { x 2 } { y ¯ 2 } a { x 1 } { y ¯ 2 } a { x ¯ 2 } { y ¯ 1 } a { x ¯ 1 } { y ¯ 1 } a { x 2 } { y ¯ 1 } a { x 1 } { y ¯ 1 } = a { x ¯ 2 } { y 1 } a { x ¯ 1 } { y 1 } a { x 2 } { y 1 } a { x 1 } { y 1 } a { x ¯ 2 } { y 2 } a { x ¯ 1 } { y 2 } a { x 2 } { y 2 } a { x 1 } { y 2 } a { x ¯ 2 } { y ¯ 1 } a { x ¯ 1 } { y ¯ 1 } a { x 2 } { y ¯ 1 } a { x 1 } { y ¯ 1 } a { x ¯ 2 } { y ¯ 2 } a { x ¯ 1 } { y ¯ 2 } a { x 2 } { y ¯ 2 } a { x 1 } { y ¯ 2 } = 0 1 0 0 1 0 0 0 0 0 0 1 0 0 1 0 · Z = X · Z .
Remark 4.
As the tiles in S are planar, none of them contain an intertwined pair of disjoint paths; hence, none of the tiles from the set S is of C-type ×. Using this observation with Remark 2 and Remark 3, we get that, for each tile in S , the following holds:
R = R = a = 0 0 a = and R = 0 a = a = 0 .
Corollary 3.
Let G T ( S ) . The number of traversing Hamiltonian cycles in G is equal to
T H C ( G ) = i = 1 2 m + 1 a = i ,
where a = i is the number of possibilities for T i to be of C-type =.
Proof. 
Using Remark 4 in Equation (2), for i { 1 , 2 , , 2 m } , we get
c i = a = i · I · c i 1 = a = i · c i 1
and
c 2 m + 1 = a = 2 m + 1 · 0 1 1 0 · c 2 m .
Then,
c 2 m + 1 = a = 2 m + 1 · a = 2 m a = 1 · 0 1 1 0 1 0 = 0 i = 1 2 m + 1 a = i .
Hence,
T H C ( G ) = i = 1 2 m + 1 a = i .
Corollary 4.
Let G T ( S ) . The number of traversing Hamiltonian cycles in G is equal to
T H C ( G ) = 2 # B + # D + # H + # I + # d .
Proof. 
We have shown before that T H C ( G ) = i = 1 2 m + 1 a = i . Using the alphabet defined above, we notice that
a = i = 2 # i B + # i D + # i H + # i I + # i d .
Then,
T H C ( G ) = i = 1 2 m + 1 2 # i B + # i D + # i H + # i I + # i d = 2 i = 1 2 m + 1 # i B + i = 1 2 m + 1 # i D + i = 1 2 m + 1 # i H + i = 1 2 m + 1 # i I + i = 1 2 m + 1 # i d = 2 # B + # D + # H + # I + # d .
Corollary 5.
Let G T ( S ) . The number of flanking Hamiltonian cycles in G is equal to
F H C ( G ) = T H C ( G ) · i = 1 2 m + 1 a i · a = i + 1 + a ] [ i , i + 1 a = i · a = i + 1 ,
where
  • T H C ( G ) is the number of traversing Hamiltonian cycles in G,
  • a = i is the number of possibilities for T i to be of C-type =,
  • a i is the number of possibilities for T i to be of C-type ‖,
  • a ] [ i , i + 1 is the number of distinct possibilities for T i and T i + 1 to be of compatible flanking C-types of forms | { x , y } and { z , w } | .
Proof. 
As shown in the proof of Lemma 5,
F H C ( G ) = i = 1 2 m + 1 a i · ( c e v e n i + 1 , i 1 + c o d d i + 1 , i 1 ) + i = 1 2 m + 1 a ] [ i , i + 1 · ( c e v e n i + 2 , i 1 + c o d d i + 2 , i 1 ) + i = 1 2 m + 1 a ] [ i , i + 1 , i + 2 · ( c e v e n i + 3 , i 1 + c o d d i + 3 , i 1 ) .
Because each tile in S contains an internal vertex, for each tile in S , the value a = 0 (see the proof of Lemma 5). Hence, i { 1 , 2 , , 2 m + 1 } , a ] [ i , i + 1 , i + 2 = 0 . Using Remark 4 as in the proof of Corollary 3, we get that
c e v e n i + 1 , i 1 c o d d i + 1 , i 1 = 0 j = 1 j i 2 m + 1 a = j and c e v e n i + 2 , i 1 c o d d i + 2 , i 1 = 0 j = 1 j { i , i + 1 } 2 m + 1 a = j .
It is easy to check that, for each tile in S , the value a = > 0 . Using observations and the result from the proof of Corollary 3 that T H C ( G ) = j = 1 2 m + 1 a = j , we get
c o d d i + 1 , i 1 = j = 1 j i 2 m + 1 a = j = 1 a = i j = 1 2 m + 1 a = j = 1 a = i · T H C ( G ) , c o d d i + 2 , i 1 = j = 1 j { i , i + 1 } 2 m + 1 a = j = 1 a = i · a = i + 1 j = 1 2 m + 1 a = j = 1 a = i · a = i + 1 · T H C ( G ) .
Hence,
F H C ( G ) = T H C ( G ) · i = 1 2 m + 1 a i · a = i + 1 + a ] [ i , i + 1 a = i · a = i + 1 .
Corollary 6.
Let G T ( S ) . The number of flanking Hamiltonian cycles in G is equal to
F H C ( G ) = T H C ( G ) · i = 1 2 m + 1 2 # i d · 2 # i + 1 B + # i + 1 D + # i + 1 H + # i + 1 I + # i + 1 d + Υ ( T i , T i + 1 ) 2 # i B + # i D + # i H + # i I + # i d · 2 # i + 1 B + # i + 1 D + # i + 1 H + # i + 1 I + # i + 1 d ,
where
Υ ( T i , T i + 1 ) = ( 1 # i H ) · 2 # i B + # i D · ( 1 # i + 1 H ) · · 2 # i + 1 B + # i + 1 D + # i + 1 d ; if s i g ( T i ) F r = d L ( 1 # i H ) · 2 # i B + # i D · ( # i + 1 P b V · 2 # i + 1 P t B + # i + 1 P t D + + 2 · # i + 1 P b B · 2 # i + 1 P t B + # i + 1 P t D + # i + 1 P t V · · ( 1 # i + 1 P b B ) + # i + 1 H # i + 1 P b V · # i + 1 P t V ) · 2 # i + 1 d + + ( # i P t V · 2 # i P b B + # i P b D + 2 · # i P t B · 2 # i P b B + # i P b D + + # i P b V · ( 1 # i P t B ) + # i H # i P t V · # i P b V ) · · ( 1 # i + 1 H ) · 2 # i + 1 B + # i + 1 D + # i + 1 d ; if s i g ( T i ) F r = L .
Note that the notation implies the number can be computed solely from the signature of a 2-crossing-critical graph. The structure of the equation is explained through the proof that follows.
Proof. 
We have shown in the proof of Corollary 4 that a = i = 2 # i D + # i B + # i H + # i I + # i d . It is easy to see that
a i = 2 ; if s i g ( T i ) F r = d L 1 ; if s i g ( T i ) F r = L = 2 # i d .
It remains to show that a ] [ i , i + 1 = Υ ( T i , T i + 1 ) :
1.
Let s i g ( T i ) F r = d L . Using Figure 13, it is easy to see that
a ] [ i , i + 1 = a | { y ¯ 1 , y 2 } i · a { x 1 , x ¯ 2 } | i + 1 .
For a | { y ¯ 1 , y 2 } i , all pictures except H are valid, and paths B and D add a multiplier 2. Hence,
a | { y ¯ 1 , y 2 } i = ( 1 # i H ) · 2 # i B + # i D .
For a { x 1 , x ¯ 2 } | i + 1 , all pictures except H are valid, and paths B and D, and the frame d L add a multiplier 2. Hence,
a { x 1 , x ¯ 2 } | i + 1 = ( 1 # i + 1 H ) · 2 # i + 1 B + # i + 1 D + # i + 1 d .
2.
Let s i g ( T i ) F r = L . Using Figure 14, it is easy to see that
a ] [ i , i + 1 = a | { y 1 , y 2 } i · a { x ¯ 1 , x ¯ 2 } | i + 1 + a | { y ¯ 1 , y 2 } i · a { x 1 , x ¯ 2 } | i + 1 .
For a | { y 1 , y 2 } i , all pictures except H are valid, and paths B and D add a multiplier 2. Hence,
a | { y 1 , y 2 } i = ( 1 # i H ) · 2 # i B + # i D .
For a { x ¯ 1 , x ¯ 2 } | i + 1 , there are several options:
  • The bottom path is V; the top path is any of the possible ones; and top paths B and D, and the frame d L add a multiplier 2.
  • The bottom path is B; the top path is any of the possible ones; and the bottom path B, top paths B and D, and the frame d L add a multiplier 2.
  • The top path is V; the bottom path is any of the possible ones, except B; and the frame d L adds a multiplier 2.
  • The top path is H, and the frame d L adds a multiplier 2.
The first and the third options both cover the picture with the top path V and the bottom path V. Hence,
a { x ¯ 1 , x ¯ 2 } | i + 1 = ( # i + 1 P b V · 2 # i + 1 P t B + # i + 1 P t D + 2 · # i + 1 P b B · 2 # i + 1 P t B + # i + 1 P t D + # i + 1 P t V · ( 1 # i + 1 P b B ) + # i + 1 H # i + 1 P b V · # i + 1 P t V ) · 2 # i + 1 d .
For a | { y ¯ 1 , y 2 } i , there are several options:
  • The top path is V; the bottom path is any of the possible ones; and the bottom paths B and D add a multiplier 2.
  • The top path is B; the bottom path is any of the possible ones; and the top path B and bottom paths B and D add a multiplier 2.
  • The bottom path is V, and the top path is any of the possible ones, except B.
  • The top path is H.
The first and the third options both cover the picture with top path V and bottom path V. Hence,
a | { y ¯ 1 , y 2 } i = # i P t V · 2 # i P b B + # i P b D + 2 · # i P t B · 2 # i P b B + # i P b D + # i P b V · ( 1 # i P t B ) + # i H # i P t V · # i P b V .
For a { x 1 , x ¯ 2 } | i + 1 , all pictures except H are valid, and paths B and D, and the frame d L add a multiplier 2. Hence,
a { x 1 , x ¯ 2 } | i + 1 = ( 1 # i + 1 H ) · 2 # i + 1 B + # i + 1 D + # i + 1 d .
Corollary 7.
Let G T ( S ) . The number of zigzagging Hamiltonian cycles in G is bounded by
0 Z H C ( G ) 8 2 m + 1 .
Proof. 
To count zigzagging Hamiltonian cycles, the algorithm from the proof of Lemma 6 with a slight difference (explained in Remark 2 and Remark 3) is used:
Z H C ( G ) = t r ( Z 2 m + 1 · Z 2 m · Z 2 m 1 Z 3 · Z 2 · Z 1 ) = t r ( ( X · Z 2 m + 1 ) · ( X · Z 2 m · X ) · Z 2 m 1 Z 3 · ( X · Z 2 · X ) · Z 1 ) = t r ( ( X · Z 2 m + 1 ) · ( X · Z 2 m ) · ( X · Z 2 m 1 ) ( X · Z 2 ) · ( X · Z 1 ) ) ,
where X is the matrix from Remark 3.
The lower bound is achieved by a graph G T ( S ) , where i { 1 , 2 , , 2 m + 1 } : s i g ( T i ) = D D d L . In this case, the matrices Z i are the following:
Z i = 0 0 4 0 0 0 0 0 4 4 0 0 2 2 0 0 .
Hence,
X · Z i = 0 0 0 0 0 0 4 0 2 2 0 0 4 4 0 0 .
Then,
( X · Z 2 m + 1 ) · ( X · Z 2 m ) · ( X · Z 2 m 1 ) ( X · Z 2 ) · ( X · Z 1 ) = 0 0 0 0 0 0 4 · 8 m 0 2 · 8 m 2 · 8 m 0 0 4 · 8 m 4 · 8 m 0 0
and
Z H C ( G ) = t r ( ( X · Z 2 m + 1 ) · ( X · Z 2 m ) · ( X · Z 2 m 1 ) ( X · Z 2 ) · ( X · Z 1 ) ) = 0 .
We now study the upper bound for the number of zigzagging Hamiltonian cycles.
Remark 5.
For matrices X , Y M n ( R 0 + ) , let the coefficient K ( X , Y ) be defined as
K ( X , Y ) = n ( # zero columns in X + # zero rows in Y # of indices i so that the X i column and Y i row are both zero ) .
If U B ( X ) and U B ( Y ) are the upper bounds for elements in matrices X and Y, then
U B ( X · Y ) = K ( X , Y ) · U B ( X ) · U B ( Y )
is an upper bound for elements in matrix X · Y (this is a direct corollary of the definition of matrix multiplication).
Based on the frame, we get the following two types of matrices:
  • Tile with frame L:
    Z L = a 11 a 12 a 13 0 a 21 a 22 a 23 0 a 31 a 32 a 33 0 a 41 a 42 a 43 0 ,
    where a i j 2 (frame adds a factor 1 and pictures add a factor 2).
  • Tile with frame d L :
    Z d L = a 11 a 12 a 13 0 0 0 0 0 a 31 a 32 a 33 0 a 41 a 42 a 43 0 ,
    where a i j 4 (frame adds a factor 2 and pictures add a factor 2).
If we use the observation (5), we have two types of matrices in the product:
  • Tile with frame L:
    X · Z L = a 21 a 22 a 23 0 a 11 a 22 a 13 0 a 41 a 42 a 43 0 a 31 a 32 a 33 0 ,
    where a i j 2 and so U B ( X · Z L ) = 2 .
  • Tile with frame d L :
    X · Z d L = 0 0 0 0 a 11 a 12 a 13 0 a 41 a 42 a 43 0 a 31 a 32 a 33 0 ,
    where a i j 4 and so U B ( X · Z d L ) = 4 .
We introduce two types of matrices:
R 1 = * * * 0 * * * 0 * * * 0 * * * 0 and R 2 = 0 0 0 0 * * * 0 * * * 0 * * * 0 .
Remark 6.
It is obvious that X · Z L is of type R 1 and that X · Z d L is of type R 2 .
For their product, the following holds:
R 1 · R 1 is of type R 1 , R 1 · R 2 is of type R 1 , R 2 · R 1 is of type R 2 , R 2 · R 2 is of type R 2 .
For coefficient defined in Remark 5, the following holds:
K ( R 1 , R 1 ) = 3 , K ( R 1 , R 2 ) = 2 , K ( R 2 , R 1 ) = 3 , K ( R 2 , R 2 ) = 2 .
Using Remark 6 and observations (6) and (7), we get the following combinations:
U B ( ( X · Z L ) · ( X · Z L ) ) = 3 · 2 · 2 = 12 , U B ( ( X · Z d L ) · ( X · Z L ) ) = 3 · 4 · 2 = 24 , U B ( ( X · Z L ) · ( X · Z d L ) ) = 2 · 2 · 2 = 8 , U B ( ( X · Z d L ) · ( X · Z d L ) ) = 2 · 4 · 4 = 32 .
It is easy to check that we get the largest bound by using a combination with all components of the product (5) equal to Z = X · Z d L . Then,
U B ( Z 2 ) = K ( Z , Z ) · U B ( Z ) · U B ( Z ) = 2 · U B ( Z ) 2 U B ( Z 3 ) = K ( Z , Z 2 ) · U B ( Z ) · U B ( Z 2 ) = 2 · U B ( Z ) · 2 · U B ( Z ) 2 = 2 2 · U B ( Z ) 3 U B ( Z 2 m + 1 ) = K ( Z , Z 2 m ) · U B ( Z ) · U B ( Z 2 m ) = 2 · U B ( Z ) · 2 2 m 1 · U B ( Z ) 2 m = 2 2 m · U B ( Z ) 2 m + 1 .
Because U B ( Z ) = 4 , we get
U B ( Z 2 m + 1 ) = 2 2 m · 4 2 m + 1 .
Because Z 2 m + 1 is of type R 2 , we get that
Z H C ( G ) Z H C ( Z 2 m + 1 ) = t r ( Z 2 m + 1 ) = 2 · U B ( Z 2 m + 1 ) = 2 · 2 2 m · 4 2 m + 1 = 8 2 m + 1 .
Example 1.
We now compute the number of Hamiltonian cycles for the graph from Figure 12:
T H C ( G ) = i = 0 2 a = i = 4 · 4 · 4 = 64 , F H C ( G ) = T H C ( G ) · i = 0 2 a i · a = i + 1 + a ] [ i , i + 1 a = i · a = i + 1 = 64 · 2 · 4 + 0 4 · 4 + 2 · 4 + 0 4 · 4 + 1 · 4 + 16 4 · 4 = 144 , Z H C ( G ) = t r ( ( X · Z 2 ) · ( X · Z 1 ) · ( X · Z 0 ) ) = 16 ,
because
Z 0 = 2 0 2 0 0 0 0 0 0 4 0 0 0 2 0 0 , Z 1 = 0 2 2 0 0 0 0 0 2 0 0 0 0 1 1 0 , Z 2 = 0 0 2 0 2 2 0 0 2 2 0 0 0 0 2 0
and so
( X · Z 2 ) · ( X · Z 1 ) · ( X · Z 0 ) = 8 8 8 0 4 4 4 0 4 4 4 0 8 8 8 0 .

Author Contributions

Conceptualization, D.B. and A.V.K.; Investigation, A.V.K., T.Ž. and D.B.; Supervision, D.B.; Validation, D.B. and A.V.K.; Writing—original draft, A.V.K. and D.B.; Writing—review and editing, A.V.K. and D.B. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Slovenian Research Agency (research program P1-0297, research projects J1-8130 and J1-2452) and project INOVUP (Innovative learning and teaching for quality careers of graduates and excellent higher education, funded by Republic of Slovenia and European Union from European Social Fund).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Table A1. Glossary of frequently used symbols.
Table A1. Glossary of frequently used symbols.
NotationDescription
Λ z Set of all possible zigzagging C-types.
Λ z = { { x 1 } { y 1 } , { x 1 } { y ¯ 1 } , { x ¯ 1 } { y 1 } , { x ¯ 1 } { y ¯ 1 } , { x 1 } { y 2 } , { x 1 } { y ¯ 2 } , { x ¯ 1 } { y 2 } , { x ¯ 1 } { y ¯ 2 } , { x 2 } { y 1 } , { x 2 } { y ¯ 1 } , { x ¯ 2 } { y 1 } , { x ¯ 2 } { y ¯ 1 } , { x 2 } { y 2 } , { x 2 } { y ¯ 2 } , { x ¯ 2 } { y 2 } , { x ¯ 2 } { y ¯ 2 } } .
Λ t Set of all possible traversing C-types.
Λ t = { = , × } .
Λ f Set of all possible flanking C-types.
Λ f = { , , | { y 1 , y 2 } , | { y ¯ 1 , y 2 } , | { y 1 , y ¯ 2 } , | { y ¯ 1 , y ¯ 2 } , { x 1 , x 2 } | , { x ¯ 1 , x 2 } | , { x 1 , x ¯ 2 } | , { x ¯ 1 , x ¯ 2 } | } .
Λ Set of all possible C-types.
Λ = Λ z Λ t Λ f .
a λ i Number of possibilities for tile T i to be of C-type λ Λ .
c e v e n i Number of distinct possibilities in C T 1 T 2 T i with even number of tiles of C-type ×
and all others of C-type =.
c o d d i Number of distinct possibilities in C T 1 T 2 T i with odd number of tiles of C-type ×
and all other of C-type =.
R i Notation for matrix
a = i a × i a × i a = i .
T i , i + l Represents the join T i T i + 1 T i + l .
a i , i + l Number of distinct possibilities for T i , T i + 1 , , T i + l to be of compatible flanking C-types to turn
around a cycle in T i , i + l , l { 0 , 1 , 2 } .
a ] [ i , i + 1 Number of distinct possibilities for T i and T i + 1 to be of compatible flanking C-types of form | { x , y }
and { z , w } | .
a ] [ i , i + 1 , i + 2 Number of distinct possibilities to turn around in three consecutive tiles T i , T i + 1 and T i + 2 .
Z i Notation for matrix
a { x ¯ 2 } { y 2 } i a { x ¯ 1 } { y 2 } i a { x 2 } { y 2 } i a { x 1 } { y 2 } i a { x ¯ 2 } { y 1 } i a { x ¯ 1 } { y 1 } i a { x 2 } { y 1 } i a { x 1 } { y 1 } i a { x ¯ 2 } { y ¯ 2 } i a { x ¯ 1 } { y ¯ 2 } i a { x 2 } { y ¯ 2 } i a { x 1 } { y ¯ 2 } i a { x ¯ 2 } { y ¯ 1 } i a { x ¯ 1 } { y ¯ 1 } i a { x 2 } { y ¯ 1 } i a { x 1 } { y ¯ 1 } i .
P t Describes the top path of the tile.
P t { A , V , D , B , H } .
I d Describes if the top and bottom paths of the tile intersect.
I d { I , } .
P b Describes the bottom path of the tile.
P b { A , V , D , B , } .
F r Describes the frame used for the tile.
F r { L , d L } .
# X The number of occurences of X in s i g ( G ) .
# j X The number of occurences of X in s i g ( T j ) .
# j p X The number of occurences of X in s i g ( T j ) p .
T H C ( G ) The number of traversing Hamiltonian cycles in G T ( S ) .
F H C ( G ) The number of flanking Hamiltonian cycles in G T ( S ) .
Z H C ( G ) The number of zigzagging Hamiltonian cycles in G T ( S ) .

References

  1. Kuratowski, C. Sur le probleme des courbes gauches en Topologie. Fundam. Math. 1930, 15, 271–283. [Google Scholar] [CrossRef]
  2. Bollobas, B. Combinatorics: Set Systems, Hypergraphs, Families of Vectors and Probabilistic Combinatorics; Cambridge University Press: New York, NY, USA, 1986. [Google Scholar]
  3. Trotter, W.T., Jr.; Moore, J.I., Jr. Characterization problems for graphs, partially ordered sets, lattices, and families of sets. Discret. Math. 1976, 16, 361–381. [Google Scholar] [CrossRef] [Green Version]
  4. Chudnovsky, M.; Robertson, N.; Seymour, P.; Thomas, R. The strong perfect graph theorem. Ann. Math. 2006, 164, 51–229. [Google Scholar] [CrossRef] [Green Version]
  5. Lovász, L. A characterization of perfect graphs. J. Comb. Theory Ser. B 1972, 13, 95–98. [Google Scholar] [CrossRef] [Green Version]
  6. Archdeacon, D. A Kuratowski theorem for the projective plane. J. Graph Theory 1981, 5, 243–246. [Google Scholar] [CrossRef] [Green Version]
  7. Robertson, N.; Seymour, P.D. Graph minors. VIII. A Kuratowski theorem for general surfaces. J. Comb. Theory, Ser. B 1990, 48, 255–288. [Google Scholar] [CrossRef] [Green Version]
  8. Bokal, D.; Oporowski, B.; Richter, R.B.; Salazar, G. Characterizing 2-crossing-critical graphs. Adv. Appl. Math. 2016, 74, 23–208. [Google Scholar] [CrossRef]
  9. des Cloizeaux, J.; Jannik, G. Polymers in Solution: Their Modelling and Structure; Clarendon Press: Oxford, MS, USA, 1990. [Google Scholar]
  10. Bašić, N.; Bokal, D.; Boothby, T.; Rus, J. An algebraic approach to enumerating non-equivalent double traces in graphs. MATCH Commun. Math. Comput. Chem. 2017, 78, 581–594. [Google Scholar]
  11. Gradišar, H.; Božič, S.; Doles, T.; Vengust, D.; Hafner-Bratkovič, I.; Mertelj, A.; Webb, B.; Šali, A.; Klavžar, S.; Jerala, R. Design of a single-chain polypeptide tetrahedron assembled from coiled-coil segments. Nat. Chem. Biol. 2013, 9, 362–366. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  12. Tošić, R.; Bodroža-Pantić, O.; Kwong, Y.H.H.; Straight, H.J. On the number of Hamiltonian cycles of P4 × Pn. Indian J. Pure Appl. Math. 1990, 21, 403–409. [Google Scholar]
  13. Kwong, Y.H.H.; Rogers, D.G. A matrix method for counting Hamiltonian cycles on grid graphs. Eur. J. Comb. 1994, 15, 277–283. [Google Scholar] [CrossRef] [Green Version]
  14. Bodroža-Pantić, O.; Tošič, R. On the number of 2-factors in rectangular lattice graphs. Publ. De L’Institut Math. 1994, 56, 23–33. [Google Scholar]
  15. Stoyan, R.; Strehl, V. Enumeration of Hamiltonian circuits in rectangular grids. J. Comb. Math. Comb. Comput. 1996, 21, 109–127. [Google Scholar]
  16. Bodroža-Pantić, O.; Kwong, H.; Doroslovački, R.; Pantić, M. Enumeration of Hamiltonian cycles on a thick grid cylinder—Part I: Non-contractible Hamiltonian cycles. Appl. Anal. Discret. Math. 2019, 13, 28–60. [Google Scholar] [CrossRef] [Green Version]
  17. Bodroža-Pantić, O.; Pantić, B.; Pantić, I.; Bodroža-Solarov, M. Enumeration of Hamiltonian cycles in some grid graphs. MATCH Commun. Math. Comput. Chem. 2013, 70, 181–204. [Google Scholar]
  18. Higuchi, S. Field theoretic approach to the counting problem of Hamiltonian cycles of graphs. Phys. Rev. E 1998, 58, 128–132. [Google Scholar] [CrossRef] [Green Version]
  19. Higuchi, S. Counting Hamiltonian cycles on planar random lattices. Mod. Phys. Lett. A 1998, 13, 727–733. [Google Scholar] [CrossRef] [Green Version]
  20. Frieze, A.; Jerrum, M.; Molloy, M.; Robinson, R.; Worml, N. Generating and counting Hamilton cycles in random regular graphs. J. Algorithms 1996, 21, 176–198. [Google Scholar] [CrossRef]
  21. Fallon, J.E. Two Results in Drawing Graphs on Surfaces. Doctoral Dissertation, Louisiana State University and Agricultural and Mechanical College, Baton Rouge, LA, USA, 2018. retrived from LSU Digital Commons. [Google Scholar]
  22. Goodman, S.; Hedetniemi, S. Sufficient conditions for a graph to be Hamiltonian. J. Comb. Theory Ser. B 1974, 16, 175–180. [Google Scholar] [CrossRef] [Green Version]
  23. Faudree, R.J.; Gould, R.J. Characterizing forbidden pairs for Hamiltonian properties. Discret. Math. 1997, 173, 45–60. [Google Scholar] [CrossRef] [Green Version]
  24. Faudree, R.J.; Gould, R.; Jacobson, M. Forbidden triples implying Hamiltonicity: For all graphs. Discuss. Math. Graph Theory 2004, 24, 47–54. [Google Scholar] [CrossRef]
  25. Gagarin, A.; Myrvold, W.; Chambers, J. Forbidden minors and subdivisions for toroidal graphs with no K3,3’s. Electron. Notes Discret. Math. 2005, 22, 151–156. [Google Scholar] [CrossRef]
  26. Mohar, B. A linear time algorithm for embedding graphs in an arbitrary surface. SIAM J. Discret. Math. 1999, 12, 6–26. [Google Scholar] [CrossRef] [Green Version]
  27. Kawarabayashi, K.; Mohar, B.; Reed, B. A simpler linear time algorithm for embedding graphs into an arbitrary surface and the genus of graphs of bounded tree-width. In Proceedings of the 49th Annual IEEE Symposium on Foundations of Computer Science, Philadelphia, PA, USA, 23–25 October 2008; pp. 771–780. [Google Scholar]
  28. Chartr, G.; Geller, D.; Hedetniemi, S. Graphs with forbidden subgraphs. J. Comb. Theory Ser. B 1971, 10, 12–41. [Google Scholar] [CrossRef] [Green Version]
  29. Dvořák, Z. On forbidden subdivision characterizations of graph classes. Eur. J. Comb. 2008, 29, 1321–1332. [Google Scholar] [CrossRef] [Green Version]
  30. Šiřan, J. Infinite families of crossing-critical graphs with a given crossing number. Discret. Math. 1984, 48, 129–132. [Google Scholar] [CrossRef] [Green Version]
  31. Kochol, M. Construction of crossing-critical graphs. Discret. Math. 1987, 66, 311–313. [Google Scholar] [CrossRef] [Green Version]
  32. Pinontoan, B.; Richter, R.B. Crossing numbers of sequence of graphs I: General tiles. Aust. J. Comb. 2004, 30, 197–206. [Google Scholar]
  33. Szalazar, G. Infinite families of crossing-critical graphs with given average degree. Discret. Math. 2003, 271, 343–350. [Google Scholar] [CrossRef] [Green Version]
  34. Hlineny, P. New infinite families of almost-planar crossing-critical graphs. Electron. J. Comb. 2008, 15, R102:1–12. [Google Scholar]
  35. Bokal, D.; Bračič, M.; Derňár, M.; Hliněný, P. On degree properties of crossing-critical families of graphs. Electron. J. Comb. 2019, 26, P153:1–28. [Google Scholar] [CrossRef]
  36. Dvořák, Z.; Hliněný, P.; Mohar, B. Structure and generation of crossing-critical graphs. In Proceedings of the 34th International Symposium on Computational Geometry, Budapest, Hungary, 11–14 June 2018; pp. 33:1–33:14. [Google Scholar]
  37. Bokal, D.; Dvořák, Z.; Hliněný, P.; Leanos, J.; Mohar, B.; Wiedera, T. Bounded degree conjecture holds precisely for c-crossing-critical graphs with c≤12. In Proceedings of the 35th International Symposium on Computational Geometry, Portland, OR, USA, 18–21 June 2019; pp. 14:1–14:15. [Google Scholar]
  38. Dvořák, Z.; Mohar, M. Crossing-critical graphs with large maximum degree. J. Comb. Theory Ser. B 2010, 100, 413–417. [Google Scholar] [CrossRef] [Green Version]
  39. Dvořák, Z.; Mohar, M. Crossing numbers of periodic graphs. J. Graph Theory 2015, 83, 34–43. [Google Scholar] [CrossRef] [Green Version]
  40. Bokal, D.; Chimani, M.; Nover, A.; Schierbaum, J.; Stolzmann, T.; Wagner, M.H.; Wiedera, T. Invariants in large 2-crossing-critical graphs. J. Graph Algorithms Appl. under review.
  41. Lovász, L. Large Networks and Graph Limits; American Mathematical Society: Providence, RI, USA, 2012. [Google Scholar]
  42. Bokal, D. Infinite families of crossing-critical graphs with prescribed average degree and crossing number. J. Graph Theory 2010, 65, 139–162. [Google Scholar] [CrossRef]
  43. Žerak, T.; Bokal, D. Playful introduction to 2-crossing-critical graphs. Dianoia 2019, 3, 101–108. [Google Scholar]
Figure 1. Two pictures of V 10 . In general, V 2 n is obtained from a 2 n -cycle by adding the n main diagonals.
Figure 1. Two pictures of V 10 . In general, V 2 n is obtained from a 2 n -cycle by adding the n main diagonals.
Mathematics 09 00693 g001
Figure 2. Two available frames.
Figure 2. Two available frames.
Mathematics 09 00693 g002
Figure 3. Thirteen available pictures to insert into a frame.
Figure 3. Thirteen available pictures to insert into a frame.
Mathematics 09 00693 g003
Figure 4. Demonstration of creation of tiles from S .
Figure 4. Demonstration of creation of tiles from S .
Mathematics 09 00693 g004
Figure 5. Example for m = 1 . For T = ( T 0 , T 1 , T 2 ) , G = ( ( T ) ) is shown. When appropriate white vertices are identified, they are suppressed (see [8] for details).
Figure 5. Example for m = 1 . For T = ( T 0 , T 1 , T 2 ) , G = ( ( T ) ) is shown. When appropriate white vertices are identified, they are suppressed (see [8] for details).
Mathematics 09 00693 g005
Figure 6. Alphabet letters describing top paths in tiles from S .
Figure 6. Alphabet letters describing top paths in tiles from S .
Mathematics 09 00693 g006
Figure 7. Additional letter H is used to describe one special picture. In this case, P t = H , I d = , P b = .
Figure 7. Additional letter H is used to describe one special picture. In this case, P t = H , I d = , P b = .
Mathematics 09 00693 g007
Figure 8. On the left side, I d = I ; on the right side, I d = .
Figure 8. On the left side, I d = I ; on the right side, I d = .
Mathematics 09 00693 g008
Figure 9. Alphabet letters describing bottom paths in tiles from S .
Figure 9. Alphabet letters describing bottom paths in tiles from S .
Mathematics 09 00693 g009
Figure 10. Alphabet letters describing frames.
Figure 10. Alphabet letters describing frames.
Mathematics 09 00693 g010
Figure 11. Transformation of frames. In transformed frames, white vertices are the left wall vertices and gray vertices are the right wall vertices of a 2-tile.
Figure 11. Transformation of frames. In transformed frames, white vertices are the left wall vertices and gray vertices are the right wall vertices of a 2-tile.
Mathematics 09 00693 g011
Figure 12. Graph G from Figure 5 can be obtained using modified tiles T 0 , T 1 , T 2 . The signature of this graph is s i g ( G ) = D V d L H d L D D L . Later in Example 1, we show that the total number of Hamiltonian cycles in G is 224.
Figure 12. Graph G from Figure 5 can be obtained using modified tiles T 0 , T 1 , T 2 . The signature of this graph is s i g ( G ) = D V d L H d L D D L . Later in Example 1, we show that the total number of Hamiltonian cycles in G is 224.
Mathematics 09 00693 g012
Figure 13. (a) Drawing of T i T i + 1 , where s i g ( T i ) F r = d L . White vertices are right wall vertices of tile T i and left wall vertices of tile T i + 1 . (b) Dotted arrows show the only possible combination for a ] [ i , i + 1 .
Figure 13. (a) Drawing of T i T i + 1 , where s i g ( T i ) F r = d L . White vertices are right wall vertices of tile T i and left wall vertices of tile T i + 1 . (b) Dotted arrows show the only possible combination for a ] [ i , i + 1 .
Mathematics 09 00693 g013
Figure 14. (a) Drawing of T i T i + 1 , where s i g ( T i ) F r = L . White vertices are right wall vertices of tile T i and left wall vertices of tile T i + 1 . (b) Dotted and dashed arrows show two possible combinations for a ] [ i , i + 1 .
Figure 14. (a) Drawing of T i T i + 1 , where s i g ( T i ) F r = L . White vertices are right wall vertices of tile T i and left wall vertices of tile T i + 1 . (b) Dotted and dashed arrows show two possible combinations for a ] [ i , i + 1 .
Mathematics 09 00693 g014
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Vegi Kalamar, A.; Žerak, T.; Bokal, D. Counting Hamiltonian Cycles in 2-Tiled Graphs. Mathematics 2021, 9, 693. https://doi.org/10.3390/math9060693

AMA Style

Vegi Kalamar A, Žerak T, Bokal D. Counting Hamiltonian Cycles in 2-Tiled Graphs. Mathematics. 2021; 9(6):693. https://doi.org/10.3390/math9060693

Chicago/Turabian Style

Vegi Kalamar, Alen, Tadej Žerak, and Drago Bokal. 2021. "Counting Hamiltonian Cycles in 2-Tiled Graphs" Mathematics 9, no. 6: 693. https://doi.org/10.3390/math9060693

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop