Characterizing and Recognizing Twistedness
Abstract
In a simple drawing of a graph, any two edges intersect in at most one point (either a common endpoint or a proper crossing). A simple drawing is generalized twisted if it fulfills certain rather specific constraints on how the edges are drawn. An abstract rotation system of a graph assigns to each vertex a cyclic order of its incident edges. A realizable rotation system is one that admits a simple drawing such that at each vertex, the edges emanate in that cyclic order, and a generalized twisted rotation system can be realized as a generalized twisted drawing. Generalized twisted drawings have initially been introduced to obtain improved bounds on the size of plane substructures in any simple drawing of . They have since gained independent interest due to their surprising properties. However, the definition of generalized twisted drawings is very geometric and drawing-specific.
In this paper, we develop characterizations of generalized twisted drawings that enable a purely combinatorial view on these drawings and lead to efficient recognition algorithms. Concretely, we show that for any , an abstract rotation system of is generalized twisted if and only if all subrotation systems induced by five vertices are generalized twisted. This implies a drawing-independent and concise characterization of generalized twistedness. Besides, the result yields a simple -time algorithm to decide whether an abstract rotation system is generalized twisted and sheds new light on the structural features of simple drawings. We further develop a characterization via the rotations of a pair of vertices in a drawing, which we then use to derive an -time algorithm to decide whether a realizable rotation system is generalized twisted.
Keywords and phrases:
generalized twisted drawings, simple drawings, rotation systems, recognition, combinatorial characterization, efficient algorithmsFunding:
Javier Tejel: Partially supported by project E41-23R, funded by Gobierno de Aragón, and project PID2023-150725NB-I00, funded by MICIU/AEI/10.13039/501100011033.Copyright and License:
2012 ACM Subject Classification:
Mathematics of computing Combinatorics ; Mathematics of computing Graph theoryEditors:
Vida Dujmović and Fabrizio MontecchianiSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Simple drawings are drawings of graphs in which the vertices are drawn as distinct points in the plane, the edges are drawn as Jordan arcs connecting their end-vertices without passing through other vertices, and each pair of edges share at most one point (a proper crossing or a common endpoint). We consider two simple drawings the same if they are strongly isomorphic, that is, if there is a homeomorphism of the plane transforming one drawing into the other. In this work we focus on simple drawings of . Unless explicitly stated otherwise, all considered drawings are of and simple. A simple drawing is generalized twisted if it is strongly isomorphic to a simple drawing in which there is a point such that each ray emanating from crosses each edge of at most once and there exists a ray emanating from such that all edges of cross . For an example see Figure 1(left), which has been reproduced from [15].
Generalized twisted drawings have been used to find plane substructures in all simple drawings of : The currently best bounds on the size of the largest plane matching and longest plane cycle and path in any simple drawing of have been obtained via generalized twisted drawings [5]. Moreover, generalized twisted drawings are the largest class of drawings for which it has been shown that each drawing has exactly empty triangles [14, 15], which is conjectured to be the minimum over all simple drawings [6]. There are several more interesting properties of generalized twisted drawings that have been shown already [4, 5, 15]. For example, all generalized twisted drawings contain plane cycles of length at least [5].
Despite the usefulness of generalized twisted drawings, their definition is very geometrical and drawing-specific. In this paper, we obtain combinatorial characterizations that no longer depend on the specific drawing, which ease the work with them and also allow for efficient recognition. Note that ad hoc it is not clear that such a combinatorial characterization needs to exist. The study of special classes of simple drawings [3, 11, 12, 13] and their combinatorial characterizations [8, 9, 10, 22, 23] has a strong tradition in the research of simple drawings and contributes significantly to the understanding simple drawings in general.
A widely used combinatorial abstraction of drawings are rotation systems. The rotation of a vertex in a drawing is the cyclic order of its incident edges. The rotation system of a simple drawing is the collection of the rotations of all vertices. Rotation systems are especially useful for describing simple drawings of complete graphs, since two simple drawings of have the same crossing edge pairs if and only if they have the same or inverse rotation system [7, 16, 17, 19]. Rotation systems of graphs can also be considered without a concrete drawing. An abstract rotation system of a graph gives, for every vertex of , a cyclic order of its adjacent vertices. An abstract rotation system is called realizable if there exists a simple drawing with that rotation system. For abstract rotation systems of complete graphs, realizability can be checked in polynomial time. Specifically, an abstract rotation system of is realizable if and only if every subrotation system induced by five vertices is realizable. This follows from a combinatorial characterization via subrotation systems of size six [20, Theorem 1.1.] together with a complete enumeration of all realizable rotation systems of for [2].
In this work, we use rotation systems to characterize generalized twisted drawings. An abstract rotation system of a graph is generalized twisted if there is a generalized twisted drawing realizing this rotation system. As our first main result, we show that generalized twisted rotation systems of can also be characterized via subrotation systems of size five. The main benefit of this result is to have a drawing-independent (and concise) characterization of generalized twistedness. The substructures to be considered are of constant size and straightforward to be checked, which improves the insight into generalized twisted drawings.
Theorem 1.
Let be an abstract rotation system of with . Then is generalized twisted if and only if every subrotation system induced by five vertices is generalized twisted.
This characterization of generalized twisted rotation systems nicely complements the characterization of all realizable simple drawings in general, which can also be done by considering subrotation systems of size five [2, 20]. Per se, such characterizations of bounded complexity do not always need to exist. For example, if the combinatorics of an (abstract) set of points is given by their triple orientations – so-called abstract order types – no simple characterization to decide their realizability as a point set in the plane can exist, as this decision problem is known to be -complete; see the recent survey [24] for details.
The main part of Theorem 1 is the “if” part. The “only-if” part follows from the fact that subdrawings of generalized twisted drawings are generalized twisted by definition. As mentioned in the article introducing generalized twisted drawings [4], there is exactly one generalized twisted rotation system of , namely, the one of the twisted drawing [18, 21] of , which gave rise to the name “generalized twisted”; see Figure 1(right) for an illustration as in [21]. We remark that Theorem 1 cannot be extended to . Figure 2 depicts a drawing from [4], where it has been shown that the rotation system of this drawing is not generalized twisted, although all its subrotation systems are (generalized) twisted.
Our second main result is a characterization of generalized twisted drawings via rotation systems and crossings as stated in Theorem 2 below and depicted on an example in Figure 3.
Theorem 2.
Let be the rotation system of a simple drawing of and let be the set of vertices of . Then is generalized twisted if and only if there exist two vertices and in and a bipartition of the vertices in , where some of or can be empty, such that:
-
(i)
For every pair of vertices and in , the edge crosses .
-
(ii)
For every pair of vertices and in , the edge crosses .
-
(iii)
For every vertex and every vertex , the edge does not cross .
-
(iv)
Beginning at , in the rotation of , all vertices in appear before all vertices in .
-
(v)
Beginning at , in the rotation of , all vertices in appear before all vertices in .
The main implication of Theorem 2 is that it leads to fast algorithms for recognizing generalized twisted rotation systems. If it is already known that a rotation system is realizable (which needs time to be checked [2, 20]), we can even use it to obtain a quadratic time recognition algorithm.
Theorem 3.
Let be an abstract rotation system of . Then it can be decided in time whether is generalized twisted. If is known to be realizable, then deciding whether it is also generalized twisted can be done in time.
Outline.
2 Preliminaries
Given a simple drawing , the star at v, denoted by , is the set of edges incident to in . For a set of vertices of , we denote by the drawing without the vertices in and without all edges incident to a vertex in . A triangle in is the simple closed curve formed by three vertices and the three edges connecting them. Every triangle partitions the plane and hence into two regions which we call the sides of . The whole drawing partitions the plane into regions called cells.
In our proofs, we heavily rely on antipodal vi-cells, empty star triangles, and maximum crossing edges, all of which we describe in the following paragraphs.
Antipodal vi-cells.
A cell that is incident to a vertex (that is, has the vertex on its boundary) is called vertex-incident cell or vi-cell. We observe that if there is a vi-cell at containing the initial parts of and in one drawing of a rotation system, then and are neighboring in the rotation of . Since the latter property depends only on the rotation system of the drawing, there is a vi-cell at in every drawing of this rotation system with initial parts of and on the boundary. Note that the remainder of the boundary of the vi-cell is not necessarily identical across different drawings of the rotation system. Two cells are antipodal if for every triangle, the two cells are on different sides. A vi-cell that is antipodal to some other vi-cell is called a via-cell. (In Figure 4, the two pairs of via-cells are marked.) Since the set of crossing edge pairs determines the rotation system and vice versa [17, 19], also the existence of via-cells is a property of the rotation system. A vertex incident to a via-cell is called a via-vertex.
We will need the following known theorem [4, Theorem 15]111The original formulation uses drawings and weak isomorphism. Our formulation is equivalent due to the equivalence of rotation systems and weak isomorphism [17, 19]..
Theorem 4 ([4]).
The rotation system of a simple drawing of is generalized twisted if and only if contains a pair of antipodal vi-cells.
Note that the characterization in Theorem 4 implies that a rotation system is generalized twisted if and only if all its realizations as simple drawings contain a pair of antipodal vi-cells.
Empty star triangles.
A triangle with vertices and is a star triangle at if the star does not cross the edge ; it is empty if one side of contains no vertices of (and hence the other side contains all of them). (In Figure 4, each circular arc between two edges at a vertex indicates that the triangle containing those two edges is an empty star triangle at that vertex.) We call two star triangles at adjacent if they are both incident to some edge and span disjoint angles at . We will use the following results on empty star triangles in simple and generalized twisted drawings.
Lemma 5 ([6]).
Let be a vertex of a simple drawing of . Then contains at least two empty star triangles at . If is a star triangle at then it is empty if and only if the vertices and are consecutive in the rotation of .
Lemma 6 ([15]).
Let be a generalized twisted drawing of and let be a vertex of . Then there are exactly two empty star triangles at . If is a pair of antipodal vi-cells in , then one of the two empty star triangles at contains on the empty side and the other triangle contains on the empty side.
Maximum crossing edges.
An edge is maximum crossing if crosses every edge not in . (For example, the bold edge in Figure 4 is maximum crossing.) Any simple drawing has at most one maximum crossing edge, as the following lemma states.
Lemma 7.
Any simple drawing of with has at most one maximum crossing edge.
Lemma 7 holds for because none of the five simple drawings of (up to strong isomorphism) [6] contains more than one maximum crossing edge. Using this fact, the lemma can be proven for by contradiction, assuming that a simple drawing contains several maximum crossing edges.
We next observe in Lemma 8 that maximum crossing edges imply generalized twisted rotation systems. Figure 5 illustrates the lemma.
Lemma 8.
Let be a simple drawing of that has a maximum crossing edge, . Let and be the two cells incident to along the edge and let and be the two cells incident to along the edge such that when going along the edge from to , the cell is on the other side of than the cell (and consequently is on the other side of than ). Then is generalized twisted and and are two pairs of antipodal vi-cells.
Lemma 8 can be shown by taking an arbitrary triangle of the generalized twisted drawing and considering where the cells adjacent to the edge and its endpoints must lie with respect to this triangle in order to allow the edge to cross all non-adjacent edges.
3 Characterization via subrotation systems induced by five vertices
In this section, we prove Theorem 1 by induction. To this end, we use the following theorem, whose proof we sketch in Section 3.1.
Theorem 9.
Let be an abstract rotation system of with such that every induced subrotation system on at most vertices is generalized twisted. Then is generalized twisted.
Proof of Theorem 1.
By definition, if is generalized twisted, then any subrotation system induced by five vertices is generalized twisted. We prove the converse: if every subrotation system induced by five vertices is generalized twisted, then is generalized twisted.
For , the theorem is verified by computer. Following the lines of [1, 5], we compute all generalized twisted rotation systems of for up to in the following way. First, we use the method of [2] to generate all realizable rotation systems, but discard those with subrotation systems induced by five vertices different to , thus computing all candidate rotation systems for generalized twisted drawings. In each candidate rotation system, we then search for a pair of antipodal vi-cells. By Theorem 4, this identifies all generalized twisted rotation systems. Any rotation system contradicting Theorem 1 does not have antipodal vi-cells. The computational results give only one rotation system of size (drawn in Figure 2) that is not generalized twisted.
For , we use induction. Every induced subrotation system of on at most vertices is generalized twisted by induction. Thus, is generalized twisted by Theorem 9.
3.1 Proof sketch of Theorem 9
Let be as in Theorem 9 and let be a realization of , which exists since any abstract rotation system of is realizable if all subrotation systems induced by five vertices are [2, 20]. Since each induced and proper subdrawing of has a generalized twisted rotation system, it also has a pair of antipodal vi-cells by Theorem 4. We use this to show that also has such a pair and thus, by Theorem 4, is generalized twisted. The idea is to locate antipodal vi-cells of using those in its induced subdrawings and empty triangles. The following lemma can be shown using Lemma 5 (for a lower bound) and Lemma 6 (for an upper bound).
Lemma 10.
Let be a drawing of with such that every induced and proper subdrawing has a generalized twisted rotation system. Then at any vertex of , there are exactly two empty star triangles.
We separately consider the case where contains a vertex with two adjacent empty star triangles at and the case that there is no such vertex.
Case 1: Two adjacent empty star triangles at a vertex .
This is the easy case. We first show the following lemma on generalized twisted rotation systems of . Its proof is based on considering two adjacent empty star triangles at a vertex and analyzing all possibilities of how to extend these triangles to a drawing of and then to a drawing of with a generalized twisted rotation system.
Lemma 11.
Let and be two vertices of a simple drawing of with generalized twisted rotation system such that the two empty star triangles at vertex are sharing the edge . Then the following properties hold.
-
1.
The edge is maximum crossing.
-
2.
The two empty star triangles at are also empty star triangles at .
-
3.
For each of the two empty star triangles at , the vertices and are adjacent in the rotation of the third vertex of the triangle in such a way that all edges emanate from the third vertex in the empty side of the triangle.
Then we consider the drawing and the two adjacent empty star triangles at in . As every proper subdrawing of has a generalized twisted rotation system, Lemma 11 implies that the edge shared by the two adjacent empty star triangles at is maximum crossing. Thus, the rotation system of is generalized twisted by Lemma 8.
Case 2: No vertex with two adjacent empty star triangles.
This is the involved case. Let be an arbitrary vertex of and let and be the (nonadjacent) empty star triangles at . Our goal is to show that using via-cells of some induced and proper subdrawings of , we can find a pair of vi-cells in such that lies in and in , and prove that and are antipodal.
Let be the set of vertices of and , and let be the subdrawing induced by . Since the rotation system of is generalized twisted and has only five vertices, we have all the information about that drawing. This includes in particular the maximum crossing edge of , which we denote by , the two pairs of antipodal vi-cells of , and the empty star triangles. As and are not adjacent, is one of the vertices in Figure 6.
Observe that the vertices and behave analogously to each other while vertex behaves differently (see Figure 7). We argue via the triangles and separately but simultaneously, because we will consider only one triangle but require that the other triangle has the same properties. We sketch the case where is or and focus mostly on . The properties for can be shown analogously and the case of behaving like then follows immediately.
For identifying all pairs of antipodal vi-cells in subdrawings of , we state in Lemma 12 properties of simple drawings with more than one such pair.
Lemma 12.
Let be a simple drawing of with different antipodal vi-cell pairs and . Then
-
1.
For one of the vertices on the boundary of a cell in , there are two empty star triangles at that vertex that share an edge.
-
2.
There is a maximum crossing edge which is the shared edge of the two empty star triangles at one of the endpoints of the edge.
-
3.
The via-cells are adjacent to the maximum crossing edge (as described in Lemma 8).
-
4.
has only those two (and no more) pairs of antipodal vi-cells.
Proof Sketch.
The proof of (1) is by contradiction. Assuming that the two empty star triangles at any vertex on the boundary of a cell in are not adjacent, we can find an induced subdrawing on 5 or 6 vertices that is not generalized twisted, a contradiction. (2) and (3) follow from Lemma 11, as by (1) there are two empty star triangles that are adjacent. (4) follows from the fact that if there is a third pair of antipodal vi-cells, then would contain two maximum crossing edges, contradicting Lemma 7.
Let be a nonempty subset of . By Lemma 12 and Lemma 6, one of the following holds for the subdrawing of :
-
1.
contains exactly one pair of antipodal vi-cells. One of those cells is in the empty side of triangle and the other one is in the empty side of triangle .
-
2.
contains exactly two pairs of antipodal vi-cells. For each pair, one cell is in the empty side of and the other one is in the empty side of . Further, for each of and , the two vi-cells in its empty side are adjacent along the maximum crossed edge of and incident to the endpoints of this edge.
The next lemma states the possibilities of how arbitrary antipodal vi-cell pairs of two subdrawings and of can be contained in all pairs of the subdrawing . The proof uses observations on the containment of cells of a drawing in cells of its subdrawings and consequences of two cells being antipodal. We denote by an antipodal vi-cell pair in the drawing .
Lemma 13.
For any pair of antipodal vi-cells in and any pair of antipodal vi-cells in , then
-
1.
If has only one antipodal vi-cell pair, , then and both are contained in .
-
2.
If has two antipodal vi-cell pairs and , then either and both are contained in one of and , or is contained in one of and , and in the other.
We identify grid structures in the empty sides of and in that we will work with to locate candidates for antipodal vi-cells of . As is an empty star triangle at and as is a simple drawing, no edge incident to can cross an edge of . However, every generalized twisted drawing of contains a crossing [5]. Hence, for every vertex , exactly one of or crosses (on or , respectively). We denote this edge by . The set of edges for every form a grid in the empty side of in . We denote the cells of this grid that have some vertex (of ) on the boundary as grid cells; see Figure 8. Grid cells in are defined analogously. Note that grid cells may consist of several cells of , as edges of can cross through and/or .
Next, we obtain an order on the grid cells of (and analogously on . Consider the dual graph of the grid cells (where the vertices are the grid cells and two vertices share an edge if the corresponding grid cells are adjacent). This dual graph is either a path or a path plus an isolated vertex (e.g. grid cell in Figure 8 left). We label the grid cells , along this dual path, beginning with the grid cell with vertex and adjacent to edge , and finishing with the cell that has on its boundary; see Figure 8 left for an example. The distance between two grid cells is the number of edges separating and . If edge is incident to both and , we say that and are glued along . We denote the two grid cells that are glued along the edge (which is the maximum crossed edge of ) by and (cells in Figure 8 left). We say that grid cell is placed before if ; and placed after otherwise.
When removing a vertex , we obtain a grid in whose only difference to the grid in is that two grid cells of that are adjacent at the edge become one grid cell in , and that some grid cells may enlarge their size, depending on the removed vertex; see Figure 8 right for an illustration. For each via-cell of in the empty side of , we denote by the grid cell of containing . Observe that is either an (enlarged) grid cell of or two such grid cells glued along an edge . With the following lemma, we obtain that the grid cells containing via-cells of the subdrawings have common intersections in the grid cells of .
Lemma 14.
Let be the set of vertices in such that for every , the grid cell in is placed before . Let be the set of vertices in such that for every , the grid cell in is placed after . Then
-
1.
If , the common intersection of is a grid cell of placed before .
-
2.
If , the common intersection of is a grid cell of placed after .
-
3.
It and , then the two obtained grid cells of are and , respectively.
Proof Sketch.
(1) Given and , we show that is a grid cell of by analyzing the intersections among and , for the different possibilities of the positions of and . Then we show by contradiction that have a common intersection, which is a grid cell of placed before . Assuming that , we show that and cannot be contained in , a contradiction. (2) is proved in a similar way. To prove (3), we show by contradiction that (respectively ) is contained in (respectively ) for any , so and must be the common grid cells.
Next we show that with enough vertices in total, we also obtain vi-cells of in the (shared) grid cells we found in .
Lemma 15.
Suppose that for the via-cells with , the corresponding grid cells in , respectively, contain a common grid cell of . Then also contain a common vi-cell of .
Proof Sketch.
We first prove that if and contain a common grid cell , then the interior of (or ) and the interior of are not disjoint. Using this result, if has only one vertex on its boundary, then the lemma trivially holds. If contains two vertices on its boundary, we partition into three sets , and , where contains the cells that are incident to only one of the vertices, contains the cells that are incident to only the other vertex, and contains the cells that are incident to both vertices. We then prove that one of and must be empty, so must all be incident to the same vertex of and share a common vi-cell of .
The following lemma shows that contains a pair of antipodal vi-cells.
Lemma 16.
For , there exists a pair of antipodal vi-cells in .
Proof Sketch.
For , let be a vertex not in and let be a pair of antipodal vi-cells in the subdrawing . For any pair of antipodal vi-cells of , one of the cells is in and the other in . Hence, by Lemma 13, must lie in and in for any . Using Lemmas 14 and 15, we show that at least four of the vi-cells share a common vi-cell in and a common vi-cell in for the corresponding vi-cells . By the antipodality of the pairs that contain , we prove the antipodality of by showing for all triangles of that and are on different sides.
4 Characterization via bipartition
This section is devoted to the proof of Theorem 2. Before starting with the proof, we introduce the concept of compatibility of vertices. Given a realizable rotation system of , let and be the (clockwise) rotations of and , respectively. We say that and are compatible (or that is compatible with ) if , for some . Note that if and are compatible and is 1 or , then .
Next we consider pairs of antipodal vi-cells in simple drawings (and thus in generalized twisted drawings) and show that each such pair contains a pair of compatible vertices. For any antipodal vi-cell pair in a simple drawing of , there exist two vertices such that and are incident to and , respectively [4]. The following lemma implies that and are compatible.
Lemma 17.
Let be a realization of a generalized twisted rotation system of with . Let be a pair of antipodal vi-cells of , and let and be vertices of incident to and , respectively, with . Assume that is the (clockwise) rotation of , and that the edges and define part of the boundary of , for some . Then the following statements hold.
-
(i)
If then the (clockwise) rotation of is and the edges and define part of the boundary of .
-
(ii)
If then the (clockwise) rotation of is and the edges and define part of the boundary of .
-
(iii)
If then the (clockwise) rotation of is and the edges and define part of the boundary of .
Proof Sketch.
We sketch the proof of (i); the proofs of (ii) and (iii) are very similar. Figure 9 shows an example of the rotations of and . Assume that the clockwise rotation of is and that the edges and , for some , define part of the boundary of . To place in the rotation of and with respect to and , we consider for with the triangle spanned by , and . As and are antipodal, they must lie on different sides of the triangle. This is not possible if corresponds to a vertex with (see Figure 10 for a depiction). Thus, if a vertex appears before (via analogous arguments after) around clockwise from , then it also appears before (after) around clockwise from .
For two vertices and with , we show that appears before in the clockwise rotation of from by contradiction. Consider the edges and . If appears before in the clockwise rotation of from , then the edges and emanate in different sides of the triangle from and . From simplicity of the drawing and the fact that each realization of a generalized twisted rotation system of contains exactly one crossing [5], we can determine how that edge must behave (see Figure 11 for a depiction). We then show that with this drawing, and must lie on the same side of the triangle , which contradicts that they are antipodal cells.
Proof Sketch of Theorem 2.
If is generalized twisted, then there exists a pair of antipodal vi-cells in , and we show that a bipartition of the vertices satisfies (i)–(v). Let be a vertex of incident to and let be a vertex of incident to . Suppose that is the (clockwise) rotation of such that and define part of the boundary of , for some . Let and be defined as follows: if , set , ; if , set , ; if , set , . We show that this bipartition satisfies (i)–(v).
To prove that (i) holds, we take two vertices and in . (If contains at most one vertex, (i) is vacuously true.) We use Lemma 17 to obtain the rotation of and and information on the bounding edges of and . We conclude that the edge crosses because otherwise and would be on the same side of the triangle (see Figure 12(left) for an example) contradicting that and are antipodal. Thus, (i) follows and, by analogous arguments for , (ii) follows.
To prove that (iii) holds for and , we take vertices and . By Lemma 17, is before and is after around . Thus, the edge cannot cross so that and are on different sides of (see Figure 12(right) for an example). Hence, (iii) follows. Finally, (iv)–(v) follow directly from the definitions of and .
To prove the other direction, we assume that and are a rotation system and drawing fulfilling (i)–(v), and show that is generalized twisted. Let be the (clockwise) rotation of beginning at , and be the (clockwise) rotation of beginning at . Let be the vi-cell of defined by the edges and , and be the vi-cell of defined by the edges and . We show that and are antipodal and thus is generalized twisted by showing for all possible triangles in that and are on different sides of that triangle. We analyze the triangles and show the following. If and are not incident to , the number of crossings give that and – and thus and – are on different sides of (see Figure 13). If or are incident to , we use and being on different ends of to show that and are on different sides of (see Figures 14 and 15).
5 Efficient algorithms
In this section, we turn to the algorithmic aspect and prove Theorem 3.
To check whether an abstract rotation system of is generalized twisted, by Theorem 1, only the subrotation systems induced by five vertices need checking. This can be done in time. (The only exception where subdrawings are not sufficient are abstract rotation systems of , but for all three generalized twisted rotation systems are known.) Alternatively, one can first check in time whether the rotation system is realizable [2, 20]. If it is not, it cannot be generalized twisted. If it is, we can use the following faster algorithm for realizable rotation systems of , which we developed using Theorem 2. The algorithm runs in time and in two steps, which we describe in the remainder of this section.
Step 1.
In the first step, the empty star triangles at an arbitrary vertex are computed.
Lemma 18.
Given a realizable rotation system of and a vertex of , the set of all empty star triangles at is the same in each realization of and can be computed from in time.
Proof Sketch.
By Lemma 5, a star triangle at is empty if and only if and are consecutive in the rotation of . Hence, there are at most empty star triangles at . Whether a triangle is a star triangle at is determined by whether there exists a vertex such that crosses . Since deciding for two edges if they cross each other can be done in constant time via the rotation system, deciding if a star triangle is empty requires time. Thus, computing all empty star triangles at can be done in time.
Step 2.
In the second step, the previously computed empty star triangles at and Theorem 2 are used to decide whether is generalized twisted.
Lemma 19.
Given a realizable rotation system of and the set of empty star triangles of a vertex of , it can be determined in time whether is generalized twisted.
Proof Sketch.
By Lemma 17, every drawing with generalized twisted rotation system has a pair of compatible vertices. If is a pair of antipodal vi-cells, then and lie on the boundary of and (or vice versa). We look for compatible vertices using empty triangles. Let be the vertex with given empty star triangles. If there are not exactly two empty star triangles at , then is not generalized twisted by Lemma 6. Otherwise, we denote by and the two empty star triangles at . (Possibly, or coincides with or .) Using Lemma 6, we can show that if there is a compatible pair of vertices it must be in . Checking compatibility of any pair in by comparing their rotation systems takes linear time.
For every such potentially compatible pair , we check properties (i)–(v) of Theorem 2. Let be the rotation of . We define and as follows. If the rotation of is , then and (or vice versa), and if the rotation of is , for some different from and , then and . Then and clearly satisfy (iv) and (v) of Theorem 2. Checking if (i), (ii), and (iii) of Theorem 2 are satisfied requires time.
Therefore, since is a constant, deciding if there is a pair in such that and are compatible and the properties (i)–(v) of Theorem 2 are satisfied for this pair can be done in time.
6 Conclusion and open problems
We presented two new characterizations for generalized twisted drawings based solely on their rotation systems. From these, we derived an -time algorithm that decides whether an abstract rotation system of is generalized twisted and an -time algorithm to decide whether a realizable rotation system is generalized twisted. The obvious open question is whether the decision can also be done faster for abstract rotation systems. The quadratic time algorithm we give does not directly apply to them. There is a non-realizable rotation system of for which the output of the algorithm depends on the choice of vertex and might be ’generalized twisted’ or ’not generalized twisted’.
Generalized twisted drawings have been useful before, for example to find large plane substructures in simple drawings [5, 15]. Overcoming their rather geometrical definition, our new combinatorial characterizations might ease work with generalized twisted drawings and foster further results with this flavor. For example, Pach, Solymosi, and Tóth [21] showed that every simple drawing of a complete graph on vertices contains vertices inducing a complete subdrawing that is either convex or twisted. Recently, Suk and Zeng [25, 26] improved this result to vertices. As both convex and twisted drawings contain large plane paths and cycles, this provides lower bounds on the size of plane paths and cycles that every simple drawing contains. It would be interesting to generalize this to show that every simple drawing contains a large generalized twisted or generalized convex subdrawing. Generalized convex drawings are – like generalized twisted drawings – a family of drawings of graphs that are well investigated [9, 11, 12]. Similarly to generalized twisted drawings, they admit characterizations via small constant sized subrotation systems [9]. Thus, a result guaranteeing the existence of a large generalized convex or generalized twisted drawing would help to extend our knowledge on simple drawings and, for example, to improve the lower bounds on the size of plane paths and cycles. We expect that this and several other questions on simple drawings can be tackled using the characterizations of this paper – independently or in combination. Especially, since the two given characterizations are very different from each other, with Theorem 1 being on all small subrotation systems and Theorem 2 being on two specific points and their rotation in the whole rotation system, they might foster the application of different other tools to obtain new results.
References
- [1] URL: https://figshare.com/projects/g-twisted_rotation_systems/184474.
- [2] Bernardo M. Ábrego, Oswin Aichholzer, Silvia Fernández-Merchant, Thomas Hackl, Jürgen Pammer, Alexander Pilz, Pedro Ramos, Gelasio Salazar, and Birgit Vogtenhuber. All good drawings of small complete graphs. In Proc. European Workshop on Computational Geometry EuroCG ’15, pages 57–60, 2015. URL: http://www.ist.tu-graz.ac.at/files/publications/geometry/aafhpprsv-agdsc-15.pdf.
- [3] Bernardo M. Ábrego, Oswin Aichholzer, Silvia Fernández-Merchant, Pedro Ramos, and Gelasio Salazar. Shellable drawings and the cylindrical crossing number of . Discret. Comput. Geom., 52(4):743–753, 2014. doi:10.1007/S00454-014-9635-0.
- [4] Oswin Aichholzer, Alfredo García, Javier Tejel, Birgit Vogtenhuber, and Alexandra Weinberger. Twisted ways to find plane structures in simple drawings of complete graphs. In Xavier Goaoc and Michael Kerber, editors, 38th International Symposium on Computational Geometry, SoCG 2022, volume 224 of LIPIcs, pages 5:1–5:18, 2022. doi:10.4230/LIPICS.SOCG.2022.5.
- [5] Oswin Aichholzer, Alfredo García, Javier Tejel, Birgit Vogtenhuber, and Alexandra Weinberger. Twisted ways to find plane structures in simple drawings of complete graphs. Discret. Comput. Geom., 71(1):40–66, 2024. doi:10.1007/S00454-023-00610-0.
- [6] Oswin Aichholzer, Thomas Hackl, Alexander Pilz, Pedro Ramos, Vera Sacristán, and Birgit Vogtenhuber. Empty triangles in good drawings of the complete graph. Graphs Comb., 31(2):335–345, 2015. doi:10.1007/S00373-015-1550-5.
- [7] Alan Arroyo, Dan McQuillan, R. Bruce Richter, and Gelasio Salazar. Drawings of k with the same rotation scheme are the same up to reidemeister moves (gioan’s theorem). Australas. J Comb., 67:131–144, 2017. URL: http://ajc.maths.uq.edu.au/pdf/67/ajc_v67_p131.pdf.
- [8] Alan Arroyo, Dan McQuillan, R. Bruce Richter, and Gelasio Salazar. Levi’s lemma, pseudolinear drawings of , and empty triangles. J. Graph Theory, 87(4):443–459, 2018. doi:10.1002/JGT.22167.
- [9] Alan Arroyo, Dan McQuillan, R. Bruce Richter, and Gelasio Salazar. Convex drawings of the complete graph: topology meets geometry. Ars Math. Contemp., 22(3):3, 2022. doi:10.26493/1855-3974.2134.AC9.
- [10] Martin Balko, Radoslav Fulek, and Jan Kynčl. Crossing numbers and combinatorial characterization of monotone drawings of . Discret. Comput. Geom., 53(1):107–143, 2015. doi:10.1007/S00454-014-9644-Z.
- [11] Helena Bergold, Stefan Felsner, Meghana M. Reddy, Joachim Orthaber, and Manfred Scheucher. Plane Hamiltonian cycles in convex drawings. In 40th International Symposium on Computational Geometry, SoCG 2024, June 11-14, 2024, Athens, Greece, volume 293 of LIPIcs, pages 18:1–18:16, 2024. doi:10.4230/LIPICS.SOCG.2024.18.
- [12] Helena Bergold, Joachim Orthaber, Manfred Scheucher, and Felix Schröder. Holes in convex and simple drawings. In Stefan Felsner and Karsten Klein, editors, 32nd International Symposium on Graph Drawing and Network Visualization, GD 2024, volume 320 of LIPIcs, pages 5:1–5:9, 2024. doi:10.4230/LIPICS.GD.2024.5.
- [13] Stefan Felsner, Sandro Roch, and Manfred Scheucher. Arrangements of pseudocircles: On digons and triangles. In Patrizio Angelini and Reinhard von Hanxleden, editors, 30th International Symposium on Graph Drawing and Network Visualization, GD 2022, volume 13764 of Lecture Notes in Computer Science, pages 441–455, 2022. doi:10.1007/978-3-031-22203-0_32.
- [14] Alfredo García, Javier Tejel, Birgit Vogtenhuber, and Alexandra Weinberger. Empty triangles in generalized twisted drawings of . In Patrizio Angelini and Reinhard von Hanxleden, editors, 30th International Symposium on Graph Drawing and Network Visualization, GD 2022, volume 13764, pages 40–48, 2022. doi:10.1007/978-3-031-22203-0_4.
- [15] Alfredo García, Javier Tejel, Birgit Vogtenhuber, and Alexandra Weinberger. Empty triangles in generalized twisted drawings of . J. Graph Algorithms Appl., 27(8):721–735, 2023. doi:10.7155/JGAA.00637.
- [16] Emeric Gioan. Complete graph drawings up to triangle mutations. In Dieter Kratsch, editor, 31st International Workshop on Graph-Theoretic Concepts in Computer Science, WG 2005, volume 3787 of Lecture Notes in Computer Science, pages 139–150, 2005. doi:10.1007/11604686_13.
- [17] Emeric Gioan. Complete graph drawings up to triangle mutations. Discret. Comput. Geom., 67(4):985–1022, 2022. doi:10.1007/S00454-021-00339-8.
- [18] Heiko Harborth and Ingrid Mengersen. Drawings of the complete graph with maximum number of crossings. Congressus Numerantium, pages 225–225, 1992.
- [19] Jan Kynčl. Improved enumeration of simple topological graphs. Discret. Comput. Geom., 50(3):727–770, 2013. doi:10.1007/S00454-013-9535-8.
- [20] Jan Kynčl. Simple realizability of complete abstract topological graphs simplified. Discret. Comput. Geom., 64(1):1–27, 2020. doi:10.1007/S00454-020-00204-0.
- [21] János Pach, József Solymosi, and Géza Tóth. Unavoidable configurations in complete topological graphs. Discrete Comput Geometry, 30:311–320, 2003. doi:10.1007/s00454-003-0012-9.
- [22] Yan Alves Radtke, Stefan Felsner, Johannes Obenaus, Sandro Roch, Manfred Scheucher, and Birgit Vogtenhuber. Flip graph connectivity for arrangements of pseudolines and pseudocircles. In David P. Woodruff, editor, Proceedings of the 2024 ACM-SIAM Symposium on Discrete Algorithms, SODA 2024, pages 4849–4871, 2024. doi:10.1137/1.9781611977912.172.
- [23] Marcus Schaefer. Taking a detour; or, Gioan’s theorem, and pseudolinear drawings of complete graphs. Discret. Comput. Geom., 66(1):12–31, 2021. doi:10.1007/S00454-021-00296-2.
- [24] Marcus Schaefer, Jean Cardinal, and Tillmann Miltzow. The existential theory of the reals as a complexity class: A compendium, 2024. doi:10.48550/arXiv.2407.18006.
- [25] Andrew Suk and Ji Zeng. Unavoidable patterns in complete simple topological graphs. In Patrizio Angelini and Reinhard von Hanxleden, editors, 30th International Symposium on Graph Drawing and Network Visualization, GD 2022, volume 13764 of Lecture Notes in Computer Science, pages 3–15, 2022. doi:10.1007/978-3-031-22203-0_1.
- [26] Andrew Suk and Ji Zeng. Unavoidable patterns in complete simple topological graphs. Discret. Comput. Geom., 73(1):79–91, 2025. doi:10.1007/S00454-024-00658-6.
