Institute of Software Technology, Graz University of Technology, [email protected]://orcid.org/0000-0002-2364-0583Partially supported by the Austrian Science Fund (FWF) grant W1230 Institute of Software Technology, Graz University of Technology, [email protected]://orcid.org/0000-0002-9982-0070Supported by the Austrian Science Fund (FWF) grant W1230 Institute of Software Technology, Graz University of Technology, [email protected]://orcid.org/0000-0002-7166-4467Partially supported by Austrian Science Fund within the collaborative DACH project Arrangements and Drawings as FWF project I 3340-N35 \ccsdesc[500]Mathematics of computing Combinatorics \ccsdesc[500]Mathematics of computing Graph theory \ccsdesc[500]Theory of computation Computational geometry
Acknowledgements.
We thank Alexandra Weinberger for fruitful discussions during the early stages of our research and we thank the anonymous referees for helpful comments on the paper.Separable Drawings: Extendability and Crossing-Free Hamiltonian Cycles
Abstract
Generalizing pseudospherical drawings, we introduce a new class of simple drawings, which we call separable drawings.
In a separable drawing, every edge can be closed to a simple curve that intersects each other edge at most once. Curves of different edges might interact arbitrarily.
Most notably, we show that
(1) every separable drawing of any graph on vertices in the plane can be extended to a simple drawing of the complete graph ,
(2) every separable drawing of contains a crossing-free Hamiltonian cycle and is plane Hamiltonian connected, and
(3) every generalized convex drawing and every 2-page book drawing is separable.
Further, the class of separable drawings is a proper superclass of the union of generalized convex and 2-page book drawings.
Hence, our results on plane Hamiltonicity extend recent work on generalized convex drawings by Bergold et al. (SoCG 2024).
keywords:
Simple drawings, Pseudospherical drawings, Generalized convex drawings, Plane Hamiltonicity, Extendability of drawings, Recognition of drawing classescategory:
\relatedversion1 Introduction
A simple drawing of a graph is a representation of in the plane (or on the sphere) such that the vertices of are mapped to distinct points and the edges of are mapped to Jordan arcs connecting their respective end-vertices. Furthermore, every pair of edges is allowed to have at most one point in common, which is either a common end-vertex or a proper crossing. Simple drawings of graphs are widely studied combinatorial objects that have received considerable attention in different areas of graph drawing, for example, every crossing-minimizing drawing of a graph is simple.
Several classes of simple drawings have been considered, including straight-line drawings (where the edges are straight-line segments), -monotone drawings (where the edges are -monotone curves), 2-page book drawings1112-page book drawings are also known as linear layouts (where all vertices lie on a straight line and the edges are drawn as half-circles), pseudolinear drawings (for which there exists an arrangement of pseudolines such that every edge lies on one pseudoline), and pseudocircular drawings (for which there exists an arrangement of pseudocircles such that every edge lies on one pseudocircle). For details on and relations between these and several more classes (some of which are mentioned later) see for example [3].
A drawing class that was introduced by Arroyo, Richter, and Sunohara [7] and that is of special interest for this work is the class of pseudospherical drawings. These are pseudocircular drawings with the additional property that every edge of the drawing intersects every pseudocircle of the underlying arrangement at most once. Stated differently, a pseudospherical drawing of a graph is a simple drawing in which every edge is contained in a simple closed curve such that
-
1.
the only two vertices of on are the end-vertices of ,
-
2.
for any two edges the curves and intersect in exactly two crossing points, and
-
3.
intersects every edge of at most once, either in a crossing or in an end-vertex.
In this work we introduce a new class of simple drawings, which we call separable drawings. These are all simple drawings that fulfill Properties 1 and 3 of pseudospherical drawings (but not necessarily Property 2). Separable drawings can also be seen as ?locally pseudospherical? because locally for every edge, they look like pseudospherical drawings, but the curves and of different edges and of may interact arbitrarily. This additional freedom gives the advantage that for recognizing separable drawings, it is sufficient to independently find a curve for each edge of the drawing. That is, we do not have to consider the set of potential such curves for all edges simultaneously, which can be relevant from a computational point of view. Moreover, we show that it is a real additional freedom in the sense that the class of separable drawings is strictly larger than the one of pseudospherical drawings.
Note that pseudocircular drawings are all simple drawings that fulfill Properties 1 and 2 of the definition of pseudospherical drawings. Hence the class of pseudospherical drawings is the intersection of the classes of separable and pseudocircular drawings.
Our motivation for studying separable drawings stems from the quest of solving two classic graph drawing questions for simple drawings, namely, the extendability to simple drawings of complete graphs and the existence of crossing-free Hamiltonian cycles in drawings of complete graphs. In this work, we answer both questions for the class of separable drawings and elucidate the relation of separable drawings to further classes of simple drawings.
Edge extension of simple drawings.
It is easy to see that every straight-line drawing in the plane on vertices in general position can be extended to a straight-line drawing of the complete graph . As a consequence of Levi’s Enlargement Lemma [17], an analogous statement is true for pseudolinear drawings. For simple drawings the situation is very different. Kynčl showed that extendability to complete graphs is not always possible [14]. Further, there exist simple drawings of graphs with only a linear number of edges, which cannot be extended by any of the missing edges without violating simplicity [11]. The decision problem of whether a given drawing can be extended by some given edges is NP-complete [4], even for a single edge and if the drawing is pseudocircular [5]. To the positive, the edge extension problem is fixed-parameter tractable (FPT) when parameterized by the number of edges to insert and an upper bound on newly created crossings [9]. The complexity of deciding whether a simple drawing (of some class) can be extended to a simple drawing of the complete graph is still an open problem. Recently, Kynčl and Soukup [16] showed that every -monotone drawing admits an extension to an -monotone drawing of the complete graph.
Crossing-free Hamiltonian cycles and paths.
It is well known that every straight-line drawing of contains a crossing-free Hamiltonian cycle, and that this property does not hold for straight-line drawings of general graphs (it already breaks for minus one edge). In 1988, Rafla [20] conjectured that the same is true for simple drawings of .
Conjecture 1.1.
Every simple drawing of with vertices contains a crossing-free Hamiltonian cycle.
If 1.1 is true, then every simple drawing of also contains at least crossing-free Hamiltonian paths and crossing-free perfect matchings. Pach, Solymosi, and Tóth [18] made the study of crossing-free subdrawings popular. For simple drawings, a lot of effort went into the search for crossing-free matchings, with the current best lower bound for their size being [2]. With regard to special drawing classes, the existence of a crossing-free Hamiltonian cycle is an easy exercise for 2-page book drawings and -monotone drawings. Further, 1.1 was proven to hold for generalized twisted drawings on an odd number of vertices [2]. In a previous work, we also confirmed it for cylindrical drawings as well as strongly c-monotone drawings [3]. In that work, we further stated the following conjecture, which we showed to be a strengthening of 1.1 in the sense of an affirmative answer for all simple drawings of (but not necessarily for a restricted class of simple drawings). Further, we showed that the implication holds for cylindrical and strongly c-monotone drawings and confirmed both conjectures for them.
Conjecture 1.2.
Every simple drawing of on vertices contains, for each pair of vertices in , a crossing-free Hamiltonian path with end-vertices and .
Very recently, both conjectures have been verified for the large class of g-convex222G-convex drawings are just called convex drawings in [6, 8]. However, we prefer the term generalized convex or g-convex to avoid confusion, since the term convex drawing classically refers to a straight-line drawing with vertices in convex position. (short for generalized convex) drawings [8], where the authors also coined the term plane Hamiltonian connected for drawings fulfilling 1.2.
A simple drawing of is called g-convex if every triangle in has a convex side. A triangle in is the simple closed curve formed by an induced subdrawing on three vertices in . Every triangle splits the plane (or sphere) into two connected components, their closures are the sides of the triangle. A side of a triangle is called convex if the subdrawing of that is induced by all vertices in is completely contained in (that is, no edge between two such vertices crosses the triangle).
Our contribution.
In Section 2 we introduce some more notation and show first properties of separable drawings, also explaining why we chose the name ?separable?. We further observe that every 2-page book drawing is separable (Section 2) and show that for simple drawings of being separable is a property of the rotation system (Lemma 2.3).
In Section 3 we consider the extension problem. We prove that for every graph on vertices, every separable drawing of can be completed to a simple drawing of and that the same holds for crossing-minimizing drawings of (Theorems 3.3 and 3.5). We further discuss that extension to simple drawings is the best we can hope for by presenting an example of a separable drawing that cannot be extended to any separable drawing of (Figure 4).
In Section 4, we turn our attention to the plane Hamiltonicity problem. We show that all separable drawings of fulfill both 1.1 (Theorem 4.3) and 1.2 (Theorem 4.1). Further, we prove that separable drawings are a proper superclass of g-convex drawings (Theorem 4.5). Thus our results on plane Hamiltonicity constitute a strengthening of the according results on g-convex drawings in [8].
Finally, we consider the question of recognizing separable drawings in Section 5. We show that the recognition problem is solvable in polynomial time for simple drawings of (Theorem 5.1) and NP-complete for simple drawings of general graphs (Theorem 5.3).
We conclude with some open problems in Section 6.
2 Preliminaries
Before we get to first properties of separable drawings, we introduce some more notation to facilitate argumentation. We call an edge of a simple drawing a separator edge if there exists a simple closed curve containing such that the only vertices of on are the end-vertices of and such that, for each edge of , has at most one point in common with . We call the curve a witness for . With this definition, a simple drawing is separable if and only if every edge of is a separator edge.
Note that a simple closed curve partitions the plane into two connected components. We call the closures of these components the sides of . To ease reasoning, we sometimes refer to the bounded side of in the plane as the inside and the other side as the outside.
The following lemma motivates why we call separable drawings ?separable?.
Lemma 2.1.
Let be a witness of a separator edge in a simple drawing . Then every edge of that connects two vertices on the same side of is fully contained in that side.
Proof 2.2.
The statement is clear for itself. Further, by the definition of a separator edge, each edge of has at most one point in common with . Every edge incident to already has an end-vertex in common with and, therefore, is contained in one side of . Finally, every edge with both end-vertices on the same side of and not incident to crosses an even number of times. Since crosses at most once, it does not cross at all, which implies that is contained in one side of .
Lemma 2.1 tells us that, for every edge in a separable drawing , each witness of separates into two induced subdrawings that together cover all vertices of , and that do not interact with each other except for sharing the common edge . In Lemma 2.3 (Item 2) we show that, for simple drawings of , the existence of two such induced subdrawings is an equivalent characterization of separability. This implies that, for complete graphs, we do not need to check edges between the two sides of for multiple intersections with .
A special case of a separator edge is an uncrossed edge . Indeed, we can close to a simple curve in a small neighborhood of itself. Then has one point in common with every edge incident to and no point in common with any other edge. With respect to the separation into two subdrawings, this means that one of them only consists of the edge .
Every uncrossed edge is a separator edge.
A classic combinatorial abstraction of a simple drawing of is its rotation system. The rotation of a vertex in a simple drawing is the (clockwise) cyclic order of its incident edges, which is classically given by an accordingly sorted list of its adjacent vertices. The rotation system of a simple drawing is the collection of the rotations of all of its vertices. Gioan [10] and Kynčl [13] independently showed that two simple drawings of have the same set of crossings if and only if they have the same rotation system. An abstract rotation system of gives, for each vertex, a (potentially arbitrary) cyclic order of its incident edges. An abstract rotation system of is called realizable if there exists a simple drawing of with this rotation system. As shown by Kynčl [15] in combination with computational results from [1], an abstract rotation system is realizable if and only if all its subrotation systems on five vertices are. This implies that deciding whether an abstract rotation system of is realizable can be done in time.
We next discuss that for a simple drawing of , separability only depends on the rotation system of . To this end, we first introduce local changes in rotation systems, which we call flips. A flip in the rotation system of a simple drawing of , see Figure 1 for an example illustration, is the operation of removing an edge in the rotations of its two incident vertices and adding it again in a different position such that
-
1.
in the counter-clockwise rotation of and the clockwise rotation of , the sets of vertices between the position of before and after the operation coincide and are non-empty, and
-
2.
the resulting (abstract) rotation system is realizable.
To relate separator edges to flips in rotation systems (Item 3 of Lemma 2.3) we will make use of a result by Schaefer [21]. It states that every pair of drawings of minus a non-perfect matching having the same set of crossings can be transformed into each other via triangle mutations (the operation of moving an edge over the crossing between two other edges; see also Figure 2), plus a homeomorphism of the plane.
Lemma 2.3.
Let be a simple drawing of and let be an edge of . Then the following are equivalent:
-
1.
The edge is a separator edge.
-
2.
The edge can be closed to a simple curve such that every edge of that connects two vertices on the same side of is fully contained in that side.
-
3.
The edge is either uncrossed or it can be flipped to an edge such that and cross disjoint sets of edges.
Proof 2.4.
In the following we show that Item 1 is equivalent to Item 2 and that Item 1 is equivalent to Item 3. The implication Item 1 Item 2 is given by Lemma 2.1. Hence, there are three implications left to show.
- Item 2 Item 1
-
Let be the subdrawing of induced by all vertices of the inside of and similarly for all vertices of the outside of . Since separates and , any edge in or has at most one point in common with . It remains to consider edges with and . If crosses , which it can cross at most once, then lies in the inside of the crossing on the vertices , or, in other words, it is separated from by the -cycle . Hence it cannot cross a second time. The remaining case is that crosses . Let be the boundary of the unbounded cell of . We show that crosses exactly once.
Assume for a contradiction that crosses more than once. Let and be two consecutive such crossings along such that the part between and lies inside . Then crosses and separates the inside of into two connected components and . Let be the component that contains . If no vertex of lies in , then every edge in that is crossed by would have to be crossed at least twice, a contradiction to being simple. Hence, there is some vertex of in . If lies in , then crosses its incident edge . If lies in , then and cross their incident edge . Since we have a contradiction in both cases, crosses exactly once.
We reroute arbitrarily close to along the outside of . This does not change any crossings with or and, by the arguments above, every edge between the two subdrawings or is crossed exactly once by the adapted curve . Consequently, is a separator edge.
- Item 1 Item 3
-
Recall that has at most one point in common with every edge in . Hence, replacing by gives a simple drawing . If and have the same crossings, then both and are uncrossed. Otherwise the rotation system must have changed and, by Lemma 2.1, the change is exactly as defined for a flip.
(a) (b) (c) Figure 2: 2(a) If after a triangle mutation the redrawn edge (dashed) would cross twice, then 2(b) we first move over the respective crossing and then 2(c) redraw as planned. - Item 3 Item 1
-
If is uncrossed, then is a separator edge by Section 2. So assume that can be flipped to such that no edge is crossed by both and , and let be a simple drawing realizing the rotation system with instead of .
We first show that and have the same crossing edge pairs. Recall that for a rotation system of , , and any pair of independent edges, the subrotation system on the 4-tuple of the four end-vertices of and determines whether or not and cross. When flipping to , the subrotation system of any 4-tuple that contains at most one end-vertex of remains unchanged. Hence it remains to consider 4-tuples that involve both end-vertices of . If in , such a 4-tuple forms a crossing that does not involve , then the order of and in the counter-clockwise rotation around and the clockwise rotation around (when starting with ) is inverse, implying that the subrotation system after the flip is the same as the one before the flip and hence that the same edge pair also crosses in . If in , such a 4-tuple is non-crossing or contains the crossing between and , then the order of and in the counter-clockwise rotation around and the clockwise rotation around (when starting with ) is the same. Hence, after the flip, the subrotation system again is either non-crossing or forms the crossing between and . Altogether, this implies that all crossing edge pairs that exist in exactly one of and involve or .
Since and have the same crossing edge pairs, they at most differ in the order of crossings along edges. Hence we can apply Schaefer’s generalization of Gioan’s theorem [21] to transform to via triangle mutations, potentially also transforming . More exactly, whenever we want to move an edge over a crossing and lies between the edge and the crossing, we first move over that crossing and then make the originally planned move with ; see Figure 2 for an illustration. This process may change the order of crossings along , but changes neither the crossing edge pairs nor the rotation at any vertex. Hence, once we have transformed to , we have obtained a transformed edge such that is a realization of the flipped rotation system. Since no edge of is crossed by both and and no edge incident to crosses any of and , the union of and fulfills the properties of a witness , which shows that is a separator edge.
Note that in the proof of Item 2 Item 1 the subdrawings and are interchangeable. That is, we could also reroute close to the boundary of . Furthermore, in the proof of Item 3 Item 1 the drawing can be an arbitrary realization of the respective rotation system. Therefore, every simple drawing that corresponds to a rotation system that has at least one realization as a separable drawing is itself a separable drawing. This makes being separable a property of the rotation system for simple drawings of .
Before we come to the main results of this paper, let us mention 2-page book drawings . There the vertices lie on a common line and all edges are drawn as half-circles. Hence, by closing to a circle, we get a simple closed curve that has at most one point in common with any edge of .
Every 2-page book drawing is separable.
3 Extendability
In the following we prove that every separable drawing of a graph on vertices can be completed to a simple drawing of . As a first step we show how to add one edge to . To do so, we impose a minimality condition regarding the witnesses of all edges in . In particular, we call a collection of witnesses, one for every edge in , a witness set for . Further, for an edge not in , we call a continuous curve that connects the drawn end-vertices and in a realization of in .
Lemma 3.1.
Let be a separable drawing of a non-complete graph and let be a witness set for . For a fixed edge not in , let be a realization of in that, over all possible realizations, minimizes the number of crossings with the witness set . Then the drawing is simple.
Proof 3.2.
Let be as described and assume, to the contrary, that is not simple. The minimality condition implies that is self-avoiding, hence, the assumption implies that has more than one point in common with an edge of ; see Figure 3 for an example illustration. Let and be two of those common points that are consecutive along . Then the parts and of and , respectively, between and each, form a simple closed curve. Since every witness in for an edge in has at most one point in common with it follows that, if crosses , then also has to cross . Therefore, rerouting along between and reduces the number of crossings of with by at least one; a contradiction to the minimality condition on .
A natural way to get to a simple drawing of would be to iterate the argument of Lemma 3.1. However, we would need the drawing in each step to be separable, which might not be the case. In particular, Figure 4(a) shows an example of a separable drawing on vertices that cannot be completed to a separable drawing of . Figure 4(b) shows a witness set for , and Figure 4(c) indicates that, with respect to crossings, there are only two different ways to add the edge between the leftmost and rightmost vertex in . Hence the witness of would have to be the union of these two options. However, both cross the rightmost edge in (orange), which is not allowed for a witness.
By imposing a second minimality condition, however, we can still extend to a simple drawing of .
Theorem 3.3.
Let be a separable drawing of a non-complete graph on vertices. Then can be extended to a simple drawing of .
Proof 3.4.
Let be a witness set for . We extend to a drawing of such that (1) each added edge creates a minimum number of additional crossings when being added to and such that under this condition (2) has the least total number of crossings. Then, by Lemma 3.1, is simple for each of those added edges.
Hence, an obstruction to simplicity can only occur between two added edges and in ; see Figure 5 for an example illustration. Let and be two consecutive common points on , and let and be the respective parts between and . By the first minimality condition, and must have the same number of crossings with , otherwise we could reroute one of or along (a part of) the other to get fewer crossings. But then exchanging and produces a drawing fulfilling the first minimality condition but with fewer crossings than ; a contradiction to the second minimality condition on .
Inspired by the question whether every crossing-minimizing drawing of is pseudosphercial, we also investigate the extendability of crossing-minimizing drawings of non-complete graphs. Interestingly, the proof works rather similar to that for separable drawings, we only need to replace the arguments regarding the witness set with arguments using that the initial drawing is crossing-minimizing. We give the details in Appendix A.
Theorem 3.5.
Let be a crossing-minimizing drawing of a non-complete graph on vertices. Then can be extended to a simple drawing of .
4 Crossing-free Hamiltonian cycles and paths
This section is about separable drawings of the complete graph . We first show that they are plane Hamiltonian connected, that is, there exists a crossing-free Hamiltonian path between each pair of vertices, which proves 1.2 for this class.
Theorem 4.1.
Every separable drawing of contains, for each pair of vertices in , a crossing-free Hamiltonian path with end-vertices and .
Proof 4.2.
The proof is by induction on . For the statement is trivially true. For the induction step, let , let be two arbitrary vertices in , and consider some edge with and witness . Further, let be the subdrawing of induced by the set of vertices on the side of not containing and let be the subdrawing of induced by the set of vertices on the other side of but without vertex .
Then and are both proper subdrawings of . Hence, by the induction hypothesis, there exists a crossing-free Hamiltonian path in with end-vertices and and there exists a crossing-free Hamiltonian path in with end-vertices and . By Lemma 2.1, no edge of the path crosses any edge of the path . Consequently, the union of and forms a crossing-free Hamiltonian path in with end-vertices and .
Figure 6(a) gives an illustration of the proof. With a similar approach we obtain that separable drawings of also contain a crossing-free Hamiltonian cycle, by this proving 1.1 for them. Figure 6(b) shows an illustration of how to get the Hamiltonian cycle.
Theorem 4.3.
Every separable drawing of with vertices contains a crossing-free Hamiltonian cycle.
Proof 4.4.
Let be an arbitrary edge in with witness and let and be the subdrawings of induced by the vertices on the two sides of , respectively. By Theorem 4.1, there exists a crossing-free Hamiltonian path in with end-vertices and , for . By Lemma 2.1, no edge of crosses any edge of . Hence, the union of and forms a crossing-free Hamiltonian cycle in .
For the proofs of Theorems 4.1 and 4.3 it is actually sufficient that for every pair of vertices and , one of them is incident to a separator edge that is not . In particular, this is the case when every vertex is incident to at least separator edges. We call this property degree-2-separable. In the proof we further rely on induction. Therefore, we call a class of simple drawings subset-closed if every subdrawing of a drawing in is itself in . With this we get the following observation, which might be helpful to show 1.1 for even larger classes of simple drawings.
Let be a subset-closed class of simple drawings of complete graphs such that every drawing in is degree-2-separable. Then every drawing in contains a crossing-free Hamiltonian cycle.
Let us further mention that a single separator edge is enough to find a crossing-free matching of linear size; let us call this property 1-separable for a subset-closed class of simple drawings. Indeed, we can add the separator edge to the matching and then recurse on the subdrawings in the two sides of the witness . In the worst case, for each edge that we add, we get two subdrawings with only one vertex each that cannot be matched anymore.
Let be a subset-closed class of simple drawings of complete graphs such that every drawing in is 1-separable. Then every drawing in contains a crossing-free matching of linear size in .
Unfortunately there exist simple drawings of without a single separator edge. Figure 7 shows the (up to weak isomorphism333Two simple drawings of a graph are weakly isomorphic if they have the same crossing edge pairs. For simple drawings of , weak isomorphism is equivalent to having the same rotation system [10, 13].) only two simple drawings of with this property; the different edge colors are just for better visibility. This result has been obtained by applying the algorithm of Theorem 5.1 to all different rotation systems of as given in [1]. Note that Harborth and Mengersen [12] proved that simple drawings of for always have uncrossed edges, and therefore, they have separator edges by Section 2. Hence, the drawings depicted in Figure 7 are the smallest examples without any separator edge.
We conclude this section by proving that all g-convex drawings are separable, therefore showing that our results on plane Hamiltonicity improve upon the work of Bergold, Felsner, M. Reddy, Orthaber, and Scheucher [8]. Our proof is inspired by the proof of Arroyo, Richter, and Sunohara [7] that all so-called hereditarily convex drawings (of ) are pseudospherical.
Theorem 4.5.
Every g-convex drawing (of is separable.
Proof 4.6.
We show that every edge in a g-convex drawing is a separator edge. If is uncrossed, then it is a separator edge by Section 2. Hence, we can assume that is crossed by at least one edge. In the following we find a simple closed curve fulfilling Item 2 of Lemma 2.3, thereby showing that is a separator edge. In particular, we find vertex sets and that will correspond to the vertices on the two sides of , respectively.
We fix an orientation of and say that a vertex of lies on the left or on the right of if the convex side of the triangle spanned by and lies to the left or right of the oriented edge , respectively. Recall that both sides of such a triangle can be convex and that the convex side is unique if and only if it is part of a crossing . In this , can either be a diagonal or a boundary edge. In the first case and lie on different sides of and in the second case they lie on the same side of ; see Figure 8 for an illustration.
We start with . In a first step, we consider crossing ’s where is a diagonal and we add the respective vertices that are to the left of to . Since is g-convex, the respective vertices that are to the right of will never be added to . In a second step, we successively add vertices to if there exists a crossing such that is a boundary edge and was already added to before. Once we cannot add anymore vertices to in this manner, we add all remaining vertices to . Note that for all vertices in the unique convex side of the triangle spanned by and is to the left of .
Let and be the subdrawings of induced by the vertices and , respectively. Note that is uncrossed in both those subdrawings. Consider the cell in that is incident to and to its right. We show that all vertices of lie in .
Assume first that a vertex of lies in the convex side of a triangle spanned by and a vertex added to in the first step, that is, there is an edge that crosses . Then, by convexity, the edge must lie in the crossing side of the spanned by and hence also crosses ; see Figure 8(a) for an example. But this implies that lies to the left of and was added to in the first step; a contradiction to .
Assume next that lies in the unique convex side of a triangle added to in the second step but not in one added in the first step. Then either or has to cross a triangle spanned by and a vertex in ; see Figure 8(b) for an example. Therefore, is added to in the second step; again a contradiction.
Assume last that lies neither in nor in any of the triangles spanned by and . Then the edges and cannot cross any of those triangle edges as argued before. Further, no vertex of can lie in the triangle spanned by and to the right of because we would not have added it to then. Since does not lie in , some part of separates it from there. Hence, there is an edge in crossing or . Since and are on the same side of the triangle and does not cross , crosses both and ; see Figure 9(a) for an illustration. Consequently, the triangles and have no convex side; a contradiction to being g-convex.
It remains to show that no edge of can cross any edge of . We first show that cannot cross any edge incident to . If itself is incident to , this cannot happen similar to before. Otherwise, since both and are in , has to pass through a triangle spanned by and a vertex of ; see Figure 9(b) for an illustration. This results in the triangles and not having a convex side. Consequently, can only cross some edge in that is independent to . But then has to cross that edge more than once. This is a contradiction in both cases.
Hence, we can close the edge in close to the boundary of to a simple curve that fulfills all properties of a witness, that is, is a separator edge.
Note that we could not just add all vertices to the left or right of to or , respectively. Figure 10(a) shows an example where this would not result in two separated subdrawings.
Further, to see that separable drawings are not only the union of g-convex and 2-page book drawings, for example, consider a straight-line drawing with at least vertices on the convex hull and reroute the edges and outside of the convex hull. This is always separable, not g-convex, and in most cases also not weakly isomorphic to any 2-page book drawing. Figure 10(b) shows the smallest such example.
5 Recognition
We have shown in Section 2 that for simple drawings of the complete graph being separable is a property of the rotation system (Item 3 of Lemma 2.3). From this we obtain a polynomial time recognition algorithm for separable drawings (and rotation systems) of .
Theorem 5.1.
It can be decided in time whether a given simple drawing of is separable.
Proof 5.2.
We check, for each edge in , whether it is a separator edge. If is uncrossed, then it is a separator edge by Section 2 and we are done. Otherwise we use the relation between separator edges and flips in rotation systems given by Item 3 of Lemma 2.3 to determine all possible flips of in the rotation system. Recall that by Lemma 2.3, separability of a simple drawing of is a property of the rotation system of . Given the drawing , its rotation system can be computed in time in a straight forward way. In the following, we use this rotation system to check separability.
By the definition of a flip of in the rotation system, the subsets in the counter-clockwise rotation of and the clockwise rotation of between the position of before and after the flip must coincide. We get all such possibilities of potential flips for in time, by going through the rotations of and in parallel (starting with ) and keeping a parity list of all vertices how often they appeared in the subsets. A counter is used to see how many of the vertices appeared an odd number of times, that is, showed up in only one of the two subsets so far. Every time this counter is zero we have a potential flip.
Checking whether the new rotation system after a potential flip is realizable takes time because we only need to test all -tuples that contain the flipped edge [15]. Further, checking whether the flipped edge has all different crossings from the original edge takes time by testing for all new crossings whether they also existed before.
In total there are many edges , each of them has potential flips, and testing whether such a flip yields a witness for takes time as argued. Hence, we can decide in time whether a simple drawing of is separable.
Unfortunately, the situation is very different for simple drawings of arbitrary graphs. In particular, we construct simple drawings of matchings in the following where it is NP-hard to decide whether they are separable. For this we use a reduction from linked planar 3-SAT with negated edges on one side, which was shown to be NP-hard by Pilz [19, Theorem 10].
The incidence graph of a 3-SAT formula has one vertex for each variable and each clause in and an edge between a variable vertex and a clause vertex if the variable occurs in the clause (as a positive or negative literal). If is a planar graph, then is a planar 3-SAT instance. For linked planar 3-SAT there is a Hamiltonian cycle that first visits all variable vertices and then all clause vertices such that the union of and is still a planar graph. Further, in the restriction ?with negated edges on one side?, there exists an embedding of such that all edges in corresponding to positive literals are drawn inside of and all edges corresponding to negative literals are drawn outside of .
Theorem 5.3.
It is NP-complete to decide whether a given simple drawing of an arbitrary graph is separable.
Proof 5.4.
Given a 3-SAT formula that is an instance of linked planar 3-SAT with negated edges on one side, we construct a simple drawing containing a special edge such that is a separator edge if and only if is satisfiable. Therefore, it is NP-hard to decide whether is a separator edge. Moreover, we show that all other edges in are definitely separator edges. Consequently, it is NP-hard to decide whether is separable. In Figure 11 we illustrate the individual gadgets of the following construction and in Figure 12 we show an example of the complete drawing corresponding to a small 3-SAT formula.
Given an embedding of the union of the incidence graph and the Hamiltonian cycle , we let be the part of between the clause vertices and the variable vertices. We then add four boundary edges, close to and on both sides next to the variable and the clause part each, crossing and crossing each other in the middle; see Figures 11(a), 11(c) and 11(f). Thereby we restrict the potential witness of to be drawn within a strip close to .
For each edge of we also add an edge to . We call these edges literal edges. Instead of the variable vertices of we let the incident literal edges in cross in a grid such that edges for positive literals are drawn in one direction and those for negative literals in the other direction; see Figure 11(b). This is possible because splits those edges into inside and outside, respectively. In that way we force to either cross all positive or all negative literal edges of the corresponding variable. In the following, crossing the positive side encodes the variable being set to FALSE and vice versa.
For the clause variables of we construct special clause gadgets depending on how many positive/negative literals are in the clause. We can assume, for simplicity and without loss of generality, that all clauses contain exactly three literals (duplicating one literal if necessary). Hence we have two cases, either all literals are of the same type (negated or not) or two are of one type and one of the other. See Figures 11(d) and 11(e) for the two constructions of clause gadgets. In addition to the literal edges, we need some auxiliary edges that cross and a boundary edge, and some local edges in the gadgets. Since auxiliary edges cross , they cannot be crossed by again. Further, literal edges can only be crossed if they were not yet crossed in the variable gadget, that is, if they have the value TRUE. Finally, can pass through a clause gadget without crossing any local edge twice if and only if it can cross at least one literal edge.
So far we have shown that is a separator edge if and only if is satisfiable. It remains to show that all other edges in the construction are separator edges in any case. The local edges can be closed locally within the gadget. The boundary edges can be closed next to the boundary edge on the other side of the strip. Further, we let the auxiliary edges in the construction cross in reverse order (nested) to how they enter the strip within the boundary edges. Therefore they pairwise do not cross and can be closed outside of the other side of the strip. For the literal edges we go back next to the boundary on the other side of the strip. Since is planar, we can cross all other literal edges except for those corresponding to the same variable. In each clause gadget we can cross the auxiliary edge or at least one of the three literal edges. Between the clause and variable gadgets (Figure 11(c)) we change sides and then cross all literal edges on the same side.
This finishes the proof for NP-hardness. For NP-completeness observe that a witness set for can be encoded and checked in polynomial space and time.
6 Future Work
Extending the question whether all crossing-minimizing drawings of are g-convex [6] we ask the following.
Question 6.1.
Is every crossing-minimizing drawing of an arbitrary graph separable?
Further, we showed NP-hardness for recognizing separable drawings. The corresponding question for pseudospherical drawings [7] is still open to the best of our knowledge.
Question 6.2.
Is it NP-hard to decide whether a simple drawing of an arbitrary graph is pseudospherical?
References
- [1] 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 Proceedings of the 31st European Workshop on Computational Geometry (EuroCG 2015), pages 57–60, 2015. URL: https://eurocg15.fri.uni-lj.si/pub/eurocg15-book-of-abstracts.pdf.
- [2] Oswin Aichholzer, Alfredo García, Javier Tejel, Birgit Vogtenhuber, and Alexandra Weinberger. Twisted ways to find plane structures in simple drawings of complete graphs. Discrete & Computational Geometry, 30:40–66, 2024. doi:10.1007/s00454-023-00610-0.
- [3] Oswin Aichholzer, Joachim Orthaber, and Birgit Vogtenhuber. Towards crossing-free Hamiltonian cycles in simple drawings of complete graphs. Computing in Geometry and Topology, 3(2):5:1–5:30, 2024. doi:10.57717/cgt.v3i2.47.
- [4] Alan Arroyo, Martin Derka, and Irene Parada. Extending simple drawings. In Proceedings of the 27th International Symposium on Graph Drawing and Network Visualization (GD 2019), pages 230–243, 2019. doi:10.1007/978-3-030-35802-0_18.
- [5] Alan Arroyo, Fabian Klute, Irene Parada, Raimund Seidel, Birgit Vogtenhuber, and Tilo Wiedera. Inserting one edge into a simple drawing is hard. Discrete & Computational Geometry, 69(3):745–770, 2023. doi:10.1007/s00454-022-00394-9.
- [6] Alan Arroyo, Dan McQuillan, R. Bruce Richter, and Gelasio Salazar. Convex drawings of the complete graph: topology meets geometry. Ars Mathematica Contemporanea, 22(3):27, 2022. doi:10.26493/1855-3974.2134.ac9.
- [7] Alan Arroyo, R. Bruce Richter, and Matthew Sunohara. Extending drawings of complete graphs into arrangements of pseudocircles. SIAM Journal on Discrete Mathematics, 35(2):1050–1076, 2021. doi:10.1137/20M1313234.
- [8] Helena Bergold, Stefan Felsner, Meghana M. Reddy, Joachim Orthaber, and Manfred Scheucher. Plane Hamiltonian cycles in convex drawings. In Proceedings of the 40th International Symposium on Computational Geometry (SoCG 2024), pages 18:1–18:16, 2024. doi:10.4230/LIPIcs.SoCG.2024.18.
- [9] Robert Ganian, Thekla Hamm, Fabian Klute, Irene Parada, and Birgit Vogtenhuber. Crossing-optimal extension of simple drawings. In Proceedings of the 48th International Colloquium on Automata, Languages, and Programming (ICALP 2021), pages 72:1–72:17, 2021. doi:10.4230/LIPICS.ICALP.2021.72.
- [10] Emeric Gioan. Complete graph drawings up to triangle mutations. Discrete & Computational Geometry, 67(4):985–1022, 2022. doi:10.1007/s00454-021-00339-8.
- [11] Péter Hajnal, Alexander Igamberdiev, Günter Rote, and André Schulz. Saturated simple and 2-simple topological graphs with few edges. Journal of Graph Algorithms and Applications, 22(1):117–138, 2018. doi:10.7155/jgaa.00460.
- [12] Heiko Harborth and Ingrid Mengersen. Edges without crossings in drawings of complete graphs. Journal of Combinatorial Theory, Series B, 17(3):299–311, 1974. doi:10.1016/0095-8956(74)90035-5.
- [13] Jan Kynčl. Simple realizability of complete abstract topological graphs in P. Discrete & Computational Geometry, 45(3):383–399, 2011. doi:10.1007/s00454-010-9320-x.
- [14] Jan Kynčl. Improved enumeration of simple topological graphs. Discrete & Computational Geometry, 50(3):727–770, 2013. doi:10.1007/s00454-013-9535-8.
- [15] Jan Kynčl. Simple realizability of complete abstract topological graphs simplified. Discrete & Computational Geometry, 64(1):1–27, 2020. doi:10.1007/s00454-020-00204-0.
- [16] Jan Kynčl and Jan Soukup. Extending simple monotone drawings. In Proceedings of the 40th European Workshop on Computational Geometry (EuroCG 2024), pages 48:1–48:6, 2024. URL: https://eurocg2024.math.uoi.gr/data/uploads/paper_48.pdf, arXiv:2312.17675.
- [17] Friedrich Levi. Die Teilung der projektiven Ebene durch Gerade oder Pseudogerade. Berichte über die Verhandlungen der Sächsischen Akademie der Wissenschaften zu Leipzig, Mathematisch-Physische Klasse, 78:256–267, 1926. In German.
- [18] János Pach, József Solymosi, and Géza Tóth. Unavoidable configurations in complete topological graphs. Discrete & Computational Geometry, 30(2):311–320, 2003. doi:10.1007/s00454-003-0012-9.
- [19] Alexander Pilz. Planar 3-SAT with a clause/variable cycle. Discrete Mathematics & Theoretical Computer Science, 21(3):18:1–18:20, 2019. doi:10.23638/DMTCS-21-3-18.
- [20] Nabil H. Rafla. The Good Drawings of the Complete Graph . PhD thesis, McGill University, Montreal, 1988. URL: https://escholarship.mcgill.ca/concern/theses/x346d4920.
- [21] Marcus Schaefer. Taking a detour; or, Gioan’s theorem, and pseudolinear drawings of complete graphs. Discrete & Computational Geometry, 66(1):12–31, 2021. doi:10.1007/s00454-021-00296-2.
Appendix A Extendability of crossing-minimizing drawings
Here we give a proof of Theorem 3.5. Similar to the case of separable drawings, we begin by adding one edge.
Lemma A.1.
Let be a crossing-minimizing drawing of a non-complete graph . Let be a realization of an edge not in that extends and creates a minimum number of additional crossings in . Then the drawing is simple.
Proof A.2.
Note that is clearly self-avoiding and is a simple drawing. Assume now to the contrary that is not simple. Then there exists an edge in such that and have more than one point in common.
Let and be two of those common points that are consecutive along and let be the drawing obtained from by exchanging and between and . Then has one or two crossings less than . Let, in particular, and be the number of crossings involving and , and and be the number of crossings not involving in and , respectively.
If , then removing from results in a drawing of with fewer crossings than ; a contradiction to being crossing-minimizing.
Else, let be the drawing after rerouting along between and in . Then has at most (respectively , if both and are crossings and the parts of before and after lie on a different sides of ) crossings involving (since does not cross between and ). In the case has two crossings less than (so ). In any case, has fewer crossings involving than ; a contradiction to creating a minimum number of additional crossings.
It is not too surprising that the resulting drawing need not be crossing-minimizing anymore. Figure 13(a) shows an example of a crossing-minimizing drawing on vertices that cannot be extended to a crossing-minimizing drawing of . Indeed, the subdrawing of without (marked in blue) is a drawing of with crossings, which is minimal. There are four edges missing in , all of which are incident to . The shaded green areas in Figure 13(b) indicate how many edges an edge starting in has to cross at least to reach that area. Based on that, the numbers close to the vertices indicate how many edges an edge between and the respective vertex has to cross at least. Summing up, we see that any extension of to a simple drawing of has at least crossings. This is one more than the minimum for drawings of .
However, again similar to the proof for separable drawings, we can impose another minimality condition to add several edges at once.
See 3.5
Proof A.3.
We extend to a drawing of such that (1) each added edge creates a minimum number of additional crossings in and such that under this condition (2) has the least total number of crossings. Then, by Lemma A.1, is simple for each of those added edges.
Assume that is not simple. Then there are two added edges and in that have more than one point in common. Let be the drawing obtained from by exchanging and (between two consecutive common points on one of the edges). In the process, and exchange some crossings that they have with and, by the first minimality condition on , the numbers of those exchanged crossings must coincide. Hence, also fulfills the first minimality condition but has in total at least one crossing less than ; a contradiction to the second minimality condition on .