Abstract
In 1930, Kuratowski showed that and 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 , 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ć.
MSC:
05C30; 05C38
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 was established [12]. In 1994, Kwong and Rogers developed a matrix method for counting Hamiltonian cycles in , obtaining exact results for [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 and [16,17]. Earlier, Saburo developed a field theoretic approximation of the number of Hamiltonian cycles in graphs 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 . 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 subdivision (or, equivalently, being large) cannot simply be ommited for the above conclusions. For a picture of , see Figure 1.
Figure 1.
Two pictures of . In general, is obtained from a -cycle by adding the n main diagonals.
The algorithm in Theorem 1 is a special case of the general algorithm from the following theorem:
Theorem 2.
Let be a finite family of 2-tiles, and let be a family of cyclizations of finite sequences of such tiles. There exists an algorithm that yields, for each graph , the number of distinct Hamiltonian cycles in G. For a fixed set , 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 and , 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 and 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 . 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 , consisting of a connected graph G and two sequences (left wall) and (right wall) of distinct vertices of G, with no vertex of G appearing in both x and y. If , we call T a k-tile.
We use the following notation when combining tiles:
Definition 2.
- 1.
- The tiles and are compatible whenever
- 2.
- A sequence of tiles is compatible if, for each , is compatible with .
- 3.
- The join of compatible tiles and is the tile for which the graph is obtained from disjoint union of G and by identifying the sequence y term by term with the sequence .
- 4.
- The join of a compatible sequence of tiles is defined as .
- 5.
- A tile T is cyclically compatible if T is compatible with itself.
- 6.
- For a cyclically compatible tile , the cyclization of T is the graph obtained by identifying the respective vertices of x with y.
- 7.
- A cyclization of a cyclically compatible sequence of tiles is defined as .
- 8.
- A k-tiled graph is a cyclization of a sequence of at least k-tiles.
Lemma 1.
Let C be a Hamiltonian cycle in a 2-tiled graph . Then, we have the following:
- 1.
- .
- 2.
- is a union of paths and isolated vertices.
- 3.
- Let v be a vertex of a component of . Then, v has degree 2 in or v is a wall vertex.
- 4.
- There are at most two distinct non-degenerate paths in .
- 5.
- If consists of distinct non-degenerate paths and , then .
Proof.
- Let K be a component of . 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 , then contains all the vertices of G, a contradiction to (in at least one tile, C does not contain all the vertices). The claim follows.
- Let v be a vertex of 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 , its degree in is equal to its degree in . 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, and contain all the wall vertices. By Claim 3, isolated vertices can only be wall vertices; hence, there are no isolated vertices and .
□
Corollary 2.
Let C be a Hamiltonian cycle in a 2-tiled graph and be the set of all isolated vertices in . Then, 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 .
- 2.
- A pair of distinct paths for which each begins and ends at opposite walls, span , and respect the vertex order of the walls.
- 3.
- A pair of distinct paths for which each begins and ends at opposite walls, span , 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 .
- 6.
- A path that begins and ends at the same wall and covers all internal vertices of .
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 , be the left, and be the right wall of .
- 1.
- If a cycle C traverses with a single path and covers all internal vertices of , then we say that is of zigzagging C-type, of which there exist four kinds, relevant for completing the Hamiltonian cycles between the tiles.First, is of zigzagging C-type if contains a single path P, the endvertices of P are vertices and of distinct walls of , and P contains the non-endvertex wall vertices . If either wall vertex that is not an endvertex of P is not contained in P, then contains a path P and these vertices as isolated vertex components. We denote such isolated components using an overline, leading to zigzagging C-types .
- 2.
- If a cycle C traverses with a pair of distinct traversing paths that span , then we say that is of traversing C-type.
- (a)
- is of aligned (Aligned pairs of traversing paths were introduced in [8].) traversing C-type = if contains a pair of distinct paths and , the endvertices of are and , and the endvertices of are and .
- (b)
- is of twisted (Twisted pairs of traversing paths were introduced in [8].) traversing C-type × if contains a pair of distinct paths and , the endvertices of are and , and the endvertices of are and .
- 3.
- If a cycle C does not traverse , then we say that is of flanking C-type.
- (a)
- is of flanking C-type ∅ if is an empty graph spanned by .
- (b)
- is of flanking C-type ‖ if contains a pair of distinct paths and , the endvertices of are and , and the endvertices of are and .
- (c)
- is of flanking C-type if contains a single path P, the endvertices of P are of the same wall of , and P contains the non-endvertex wall vertices . If either wall vertex that is not endvertex of P is not contained in P, then contains a path P and these vertices as isolated components. We denote this using an overline, leading to flanking C-types , , . The respective notations for flanking C-types of P with endvertices are , , ,.
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 Λ .
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 . Then, precisely one of the following holds:
- 1.
- is of zigzagging C-type.
- 2.
- : is of flanking C-type ‖ and , is of traversing C-type.
- 3.
- : and are of compatible flanking C-type of form and , respectively, and , is of traversing C-type.
- 4.
- : are of flanking C-types , ∅, , respectively, and , is of traversing C-type.
- 5.
- is of traversing C-type, where the number of indices i of tiles of traversing C-type × is odd.
Proof.
- We prove that, if is of zigzagging C-type, then the same holds for and . Suppose that is of zigzagging C-type. Then, has the property that exactly one of its left and one of its right wall vertices have a degree 1 in (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 and the right wall vertex has degree 1 in . 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 . If a wall vertex is of degree 0 (2) in , then its degree in (left wall vertex of ) or in (right wall vertex of ) is 2 (0). Hence, based on Corollary 2, and 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 be of C-type ‖. Let be paths in . Assume without loss of generality that starts in and ends in and that starts in and ends in . Because , , where are paths in , which start in and end in , respectively. Then, , . For , is nontrivial and connected; otherwise, would not be connected. Hence, are vertex disjoint paths in that cover all internal vertices (C is a Hamiltonian cycle) with endvertices in the opposite walls. Therefore, 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 be of C-type . Then, consists of some isolated vertices (candidates are ) and path . Because any isolated vertex of is part of a path of a neighbouring tile (in this case, ) and is not the endvertex of this path, there is a path in for which the endvertices are and covers possible isolated nodes of a tile . Hence, is of compatible C-type .We now suppose that is of C-type and that is not of C-type ∅. Then, consists of isolated nodes , and path , where is a path for which the endvertices are . Hence, is of C-type .Because , in both cases, , where are paths in , which start in and end in . Then, , and (similarly as in Item 2 of the proof of Lemma 2) 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 has an adjacent tile of C-type ∅.
- Let be of C-type and be of C-type ∅. Then, there exists a path in that covers . Because are isolated vertices in , there is a path in for which the endvertices are and covers these isolated nodes . Hence, is of C-type . Because , , where are paths in , which start in and end in . Then, , and (similarly as in Item 2 of the proof of Lemma 2) 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 .
- Assume now that there is a tile of C-type of form . Then, as we assumed that there are no tiles of C-type of form , a symmetric argument to Item 3 of the proof of Lemma 2 implies is of C-type ∅ (hence, can only be of C-type ). However, then a symmetric argument to Item 4 of the proof of Lemma 2 implies that is of C-type , 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 of C-type ∅, then consists of at least two disconnected paths and . However, as C only intersects in wall vertices, C is equal to , a contradiction implying that all the tiles are of traversing C-types.The remaining case is that is of traversing C-type. Therefore, , where each path starts in a left wall vertex and ends in a right wall vertex. Without loss of generality, we may assume that, , are such that , ends in same vertex as starts (if not, we can reindex them). Without loss of generality, we may assume that starts in and in .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 of C-type ×, and are distinct cycles. When this number is odd, 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 be a sequence of 2-tiles in a 2-tiled graph , where indices i and j are considered cyclically. Then,
Using Definition 5, we define as follows:
Definition 6.
Let be a 2-tiled graph. For and , let
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, .
3.1. Counting Traversing Hamiltonian Cycles
Lemma 3.
Let be a fixed finite family of 2-tiles, and let , where . Traversing Hamiltonian cycles in G can be counted in time .
Proof.
For , let
We define starting condition as
because, in an empty graph, there are zero (even number) tiles of C-type ×. Then, for each :
Hence,
By Lemma 2, the number of traversing Hamiltonian cycles in G is equal to (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 . The time complexity to compute the product and then the number is . □
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 be a fixed finite family of 2-tiles, and let , where , and . Flanking Hamiltonian cycles that turn around in the join of consecutive tiles can be counted in time . In the case where the corresponding matrices , , are invertible, we can count them in time .
Proof.
For , let
- ,
- be number of distinct possibilities for to be of compatible flanking C-types to turn around a cycle in .
To get the number of flanking Hamiltonian cycles that turn around in , , we do the following:
- We calculate the value .
- Using the idea from the proof for traversing Hamiltonian cycles over the sequence , we getwhere is as in (1). Then, presents the number of different combinations of with an even number of tiles of traversing C-type × and presents the number of different combinations of with an odd number of tiles of traversing C-type ×.
- The number of Hamiltonian cycles turning around in is equal to
Hence, the total number of Hamiltonian cycles turning around in the join of consecutive tiles in graph G is equal to
Because there are finitely many different tiles and l is a constant, values and matrices can be precalculated. The time complexity to compute the product and then the number is . Hence, to get the number , we need time. For m such numbers, the total time complexity is .
Suppose that every matrix , , is invertible () and let
be as in (3). We can get the value by solving the equation
Because matrices , are invertible, we get
In this case, we need time to get . We need only additional time to compute each and then the number and hence to compute them all. The total time complexity in this case is then . □
Lemma 5.
Let be a fixed finite family of 2-tiles, and let , where . Flanking Hamiltonian cycles in G can be counted in time . In the case where the corresponding matrices , , are invertible, we can count them in time .
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 and , we get the desired result.
- Counting flanking Hamiltonian cycles that turn around in two consecutive tiles:In consecutive tiles and , we have and . Let denote the number of distinct possibilities for and to be of compatible flanking C-types of the forms and . Then,Flanking Hamiltonian cycles that turn around in two consecutive tiles consist of two parts. In consecutive tiles, compatible C-types of forms and are used and other tiles are of traversing C-type. Using Lemma 4 with and , we get the desired result.
- Counting flanking Hamiltonian cycles that turn around in three consecutive tiles:Considering three consecutive tiles , , and implies , , and . Let denote the number of distinct possibilities to turn around in three consecutive tiles , , and . Then,whereFlanking Hamiltonian cycles that turn around in three consecutive tiles consist of two parts. In consecutive tiles , and , respectively, the C-types that are used are , ∅, and . Other tiles are of traversing C-type. Using Lemma 4 with and , we get the desired result.
□
3.3. Counting Zigzagging Hamiltonian Cycles
Lemma 6.
Let be a fixed finite family of 2-tiles, and let , where . Zigzagging Hamiltonian cycles in G can be counted in time .
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:
- is an endvertex of a path and is part of a path (notation ),
- is an endvertex of a path and is part of a path (notation ),
- is an endvertex of a path and is an isolated vertex (notation ),
- is an endvertex of a path and is an isolated vertex (notation ).
For and , let
In adjacent tiles and , we have and . We define different starting conditions , dependent on the starting type in the first tile (in this notation ):
- for :
- for :
- for :
- for :
For each , we get
Then,
For each starting type , we get the equation
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 and ending type in tile (we can combine them to cycles). Hence, the number of zigzagging Hamiltonian cycles in a graph G is equal to
which is equal to
To compute this number, we have to efficiently calculate matrices . Because there is a finite number of different tiles, we can precompute them independently from m. The time complexity to compute the product and then the number is . □
Theorem 2.
Let be a finite family of 2-tiles, and let be a family of cyclizations of finite sequences of such tiles. There exists an algorithm that yields, for each graph , the number of distinct Hamiltonian cycles in G. For a fixed set , 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 (Lemma 3 and Lemma 6). Flanking Hamiltonian cycles can be counted in time (Lemma 5). For adding all three counters, we need 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 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 is at least c but every proper subgraph H of G has .
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.
- is 3-connected, contains a subdivision of, 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 , 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, denotes the reversed sequence.
- 2.
- (a) The right-inverted tile of a tile is the tile .(b) The left-inverted tile of a tile is the tile .(c) The inverted tile of a tile is the tile .
- 3.
- The set 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 rotation.
Figure 2. Two available frames.
Figure 3. Thirteen available pictures to insert into a frame. - 4.
- The set consists of all graphs of the form , where is a sequence such that and .
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).
Figure 4.
Demonstration of creation of tiles from .
Figure 5.
Example for . For , is shown. When appropriate white vertices are identified, they are suppressed (see [8] for details).
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:
Figure 6. Alphabet letters describing top paths in tiles from .
Figure 7. Additional letter H is used to describe one special picture. In this case, .- identification : Describes if top and bottom paths of the tile intersect. (see Figure 8).
Figure 8. On the left side, ; on the right side, . - bottom path : Describes the bottom path of the tile. (see Figure 9).
Figure 9. Alphabet letters describing bottom paths in tiles from . - frame : Describes the frame used for the tile. (see Figure 10).
Figure 10. Alphabet letters describing frames.
Using this notation, each tile has its own signature:
If some attribute is equal to ∅, it is omitted in the signature. For a graph , , where , we introduce a signature in a natural way:
In connection with the introduced signature, we later use the following notation:
- for , #X is the number of occurrences of X in ;
- for and , is the number of occurrences of X in ; and
- for , and , is the number of occurrences of X as .
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 . 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 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).
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 12.
Graph G from Figure 5 can be obtained using modified tiles . The signature of this graph is . Later in Example 1, we show that the total number of Hamiltonian cycles in G is 224.
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 :
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 :
Remark 4.
As the tiles in are planar, none of them contain an intertwined pair of disjoint paths; hence, none of the tiles from the set is of C-type ×. Using this observation with Remark 2 and Remark 3, we get that, for each tile in , the following holds:
Corollary 3.
Let . The number of traversing Hamiltonian cycles in G is equal to
where is the number of possibilities for to be of C-type =.
Corollary 4.
Let . The number of traversing Hamiltonian cycles in G is equal to
Proof.
We have shown before that Using the alphabet defined above, we notice that
Then,
□
Corollary 5.
Let . The number of flanking Hamiltonian cycles in G is equal to
where
- is the number of traversing Hamiltonian cycles in G,
- is the number of possibilities for to be of C-type =,
- is the number of possibilities for to be of C-type ‖,
- is the number of distinct possibilities for and to be of compatible flanking C-types of forms and .
Proof.
As shown in the proof of Lemma 5,
Because each tile in contains an internal vertex, for each tile in , the value (see the proof of Lemma 5). Hence, . Using Remark 4 as in the proof of Corollary 3, we get that
It is easy to check that, for each tile in , the value . Using observations and the result from the proof of Corollary 3 that , we get
Hence,
□
Corollary 6.
Let . The number of flanking Hamiltonian cycles in G is equal to
where
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 . It is easy to see that
It remains to show that :
- 1.
- Let . Using Figure 13, it is easy to see that
Figure 13. (a) Drawing of , where . White vertices are right wall vertices of tile and left wall vertices of tile . (b) Dotted arrows show the only possible combination for .For , all pictures except H are valid, and paths B and D add a multiplier 2. Hence,For , all pictures except H are valid, and paths B and D, and the frame add a multiplier 2. Hence, - 2.
- Let . Using Figure 14, it is easy to see that
Figure 14. (a) Drawing of , where . White vertices are right wall vertices of tile and left wall vertices of tile . (b) Dotted and dashed arrows show two possible combinations for .For , all pictures except H are valid, and paths B and D add a multiplier 2. Hence,For , 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 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 add a multiplier 2.
- The top path is V; the bottom path is any of the possible ones, except B; and the frame adds a multiplier 2.
- The top path is H, and the frame 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,For , 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,For , all pictures except H are valid, and paths B and D, and the frame add a multiplier 2. Hence,
□
Corollary 7.
Let . The number of zigzagging Hamiltonian cycles in G is bounded by
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:
where X is the matrix from Remark 3.
The lower bound is achieved by a graph , where . In this case, the matrices are the following:
Hence,
Then,
and
We now study the upper bound for the number of zigzagging Hamiltonian cycles.
Remark 5.
For matrices , let the coefficient be defined as
If and are the upper bounds for elements in matrices X and Y, then
is an upper bound for elements in matrix (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:where (frame adds a factor 1 and pictures add a factor 2).
- Tile with frame :where (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:where and so .
- Tile with frame :where and so .
We introduce two types of matrices:
Remark 6.
It is obvious that is of type and that is of type .
For their product, the following holds:
For coefficient defined in Remark 5, the following holds:
It is easy to check that we get the largest bound by using a combination with all components of the product (5) equal to . Then,
Because , we get
Because is of type , we get that
□
Example 1.
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.
| Notation | Description |
|---|---|
| Set of all possible zigzagging C-types. | |
| Set of all possible traversing C-types. | |
| Set of all possible flanking C-types. | |
| Set of all possible C-types. | |
| Number of possibilities for tile to be of C-type . | |
| Number of distinct possibilities in with even number of tiles of C-type × | |
| and all others of C-type =. | |
| Number of distinct possibilities in with odd number of tiles of C-type × | |
| and all other of C-type =. | |
| Notation for matrix | |
| Represents the join . | |
| Number of distinct possibilities for to be of compatible flanking C-types to turn | |
| around a cycle in , . | |
| Number of distinct possibilities for and to be of compatible flanking C-types of form | |
| and . | |
| Number of distinct possibilities to turn around in three consecutive tiles and . | |
| Notation for matrix | |
| Describes the top path of the tile. | |
| Describes if the top and bottom paths of the tile intersect. | |
| Describes the bottom path of the tile. | |
| Describes the frame used for the tile. | |
| The number of occurences of X in . | |
| The number of occurences of X in . | |
| The number of occurences of X in . | |
| The number of traversing Hamiltonian cycles in . | |
| The number of flanking Hamiltonian cycles in . | |
| The number of zigzagging Hamiltonian cycles in . |
References
- Kuratowski, C. Sur le probleme des courbes gauches en Topologie. Fundam. Math. 1930, 15, 271–283. [Google Scholar] [CrossRef]
- Bollobas, B. Combinatorics: Set Systems, Hypergraphs, Families of Vectors and Probabilistic Combinatorics; Cambridge University Press: New York, NY, USA, 1986. [Google Scholar]
- 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]
- Chudnovsky, M.; Robertson, N.; Seymour, P.; Thomas, R. The strong perfect graph theorem. Ann. Math. 2006, 164, 51–229. [Google Scholar] [CrossRef]
- Lovász, L. A characterization of perfect graphs. J. Comb. Theory Ser. B 1972, 13, 95–98. [Google Scholar] [CrossRef]
- Archdeacon, D. A Kuratowski theorem for the projective plane. J. Graph Theory 1981, 5, 243–246. [Google Scholar] [CrossRef]
- 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]
- Bokal, D.; Oporowski, B.; Richter, R.B.; Salazar, G. Characterizing 2-crossing-critical graphs. Adv. Appl. Math. 2016, 74, 23–208. [Google Scholar] [CrossRef]
- des Cloizeaux, J.; Jannik, G. Polymers in Solution: Their Modelling and Structure; Clarendon Press: Oxford, MS, USA, 1990. [Google Scholar]
- 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]
- 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]
- 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]
- 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]
- 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]
- Stoyan, R.; Strehl, V. Enumeration of Hamiltonian circuits in rectangular grids. J. Comb. Math. Comb. Comput. 1996, 21, 109–127. [Google Scholar]
- 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]
- 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]
- Higuchi, S. Field theoretic approach to the counting problem of Hamiltonian cycles of graphs. Phys. Rev. E 1998, 58, 128–132. [Google Scholar] [CrossRef]
- Higuchi, S. Counting Hamiltonian cycles on planar random lattices. Mod. Phys. Lett. A 1998, 13, 727–733. [Google Scholar] [CrossRef]
- 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]
- 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]
- Goodman, S.; Hedetniemi, S. Sufficient conditions for a graph to be Hamiltonian. J. Comb. Theory Ser. B 1974, 16, 175–180. [Google Scholar] [CrossRef]
- Faudree, R.J.; Gould, R.J. Characterizing forbidden pairs for Hamiltonian properties. Discret. Math. 1997, 173, 45–60. [Google Scholar] [CrossRef]
- 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]
- 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]
- Mohar, B. A linear time algorithm for embedding graphs in an arbitrary surface. SIAM J. Discret. Math. 1999, 12, 6–26. [Google Scholar] [CrossRef]
- 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]
- Chartr, G.; Geller, D.; Hedetniemi, S. Graphs with forbidden subgraphs. J. Comb. Theory Ser. B 1971, 10, 12–41. [Google Scholar] [CrossRef]
- Dvořák, Z. On forbidden subdivision characterizations of graph classes. Eur. J. Comb. 2008, 29, 1321–1332. [Google Scholar] [CrossRef]
- Š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]
- Kochol, M. Construction of crossing-critical graphs. Discret. Math. 1987, 66, 311–313. [Google Scholar] [CrossRef]
- Pinontoan, B.; Richter, R.B. Crossing numbers of sequence of graphs I: General tiles. Aust. J. Comb. 2004, 30, 197–206. [Google Scholar]
- Szalazar, G. Infinite families of crossing-critical graphs with given average degree. Discret. Math. 2003, 271, 343–350. [Google Scholar] [CrossRef]
- Hlineny, P. New infinite families of almost-planar crossing-critical graphs. Electron. J. Comb. 2008, 15, R102:1–12. [Google Scholar]
- 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]
- 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]
- 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]
- Dvořák, Z.; Mohar, M. Crossing-critical graphs with large maximum degree. J. Comb. Theory Ser. B 2010, 100, 413–417. [Google Scholar] [CrossRef]
- Dvořák, Z.; Mohar, M. Crossing numbers of periodic graphs. J. Graph Theory 2015, 83, 34–43. [Google Scholar] [CrossRef]
- 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.
- Lovász, L. Large Networks and Graph Limits; American Mathematical Society: Providence, RI, USA, 2012. [Google Scholar]
- 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]
- Žerak, T.; Bokal, D. Playful introduction to 2-crossing-critical graphs. Dianoia 2019, 3, 101–108. [Google Scholar]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).