Graphs with large total angular resolution
Oswin Aichholzer, Matias Korman, Yoshio Okamoto, Irene Parada, and Daniel Perz, Andr\'e van Renssen, Birgit Vogtenhuber

TL;DR
This paper investigates the maximum total angular resolution in straight-line graph drawings, establishing bounds and computational complexity results, which enhance understanding of graph readability and drawing constraints.
Contribution
It proves a tight bound on the number of edges for graphs with high total angular resolution and shows that deciding this property is NP-hard.
Findings
Bound of 2n-6 edges for graphs with >60° total angular resolution
NP-hardness of deciding total angular resolution ≥ 60°
Tightness of the established edge bound
Abstract
The total angular resolution of a straight-line drawing is the minimum angle between two edges of the drawing. It combines two properties contributing to the readability of a drawing: the angular resolution, which is the minimum angle between incident edges, and the crossing resolution, which is the minimum angle between crossing edges. We consider the total angular resolution of a graph, which is the maximum total angular resolution of a straight-line drawing of this graph. We prove that, up to a finite number of well specified exceptions of constant size, the number of edges of a graph with vertices and a total angular resolution greater than is bounded by . This bound is tight. In addition, we show that deciding whether a graph has total angular resolution at least is NP-hard.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsComputational Geometry and Mesh Generation · Advanced Graph Theory Research · Constraint Satisfaction and Optimization
\newclass\threesat
3SAT
Graphs with large total angular resolution
Oswin Aichholzer1
Matias Korman2
Yoshio Okamoto3
Irene Parada4
Daniel Perz1
André van Renssen5
Birgit Vogtenhuber1
Abstract
The total angular resolution of a straight-line drawing is the minimum angle between two edges of the drawing. It combines two properties contributing to the readability of a drawing: the angular resolution, which is the minimum angle between incident edges, and the crossing resolution, which is the minimum angle between crossing edges. We consider the total angular resolution of a graph, which is the maximum total angular resolution of a straight-line drawing of this graph.
We prove tight bounds for the number of edges for graphs for some values of the total angular resolution up to a finite number of well specified exceptions of constant size. In addition, we show that deciding whether a graph has total angular resolution at least is \NP-hard. Further we present some special graphs and their total angular resolution.
1Graz University of Technology, Graz, Austria
{oaich,daperz,bvogt}@ist.tugraz.at
2Siemens EDA (previously Mentor Graphics), Wilsonville, USA
3The University of Electro-Communications, Tokyo, Japan
4Technical University of Denmark, Lyngby, Denmark
5The University of Sydney, Sydney, Australia
1 Introduction
We study angles between incident edges of straight-line drawings of graphs. In the following we mostly omit the word straight-line. The total angular resolution of a drawing , or short , is the smallest angle occurring in , either between two edges incident to the same vertex or between two crossing edges. In other words, is the minimum of the angular resolution and the crossing resolution of the same drawing (where if is plane). Furthermore, the total angular resolution of a graph (or short ) is defined as the maximum of over all drawings of . Similarly, the angular resolution and the crossing resolution of are the maximum of and , respectively, over all drawings of . Note that the total angular resolution of a graph can be smaller than the minimum of its crossing resolution and its angular resolution, see Figure 1.
In 1993 Formann et al. [14] were the first to introduce the angular resolution of graphs. They showed that finding a drawing of a graph with angular resolution at least is \NP-hard for graphs with maximum degree . Four yeary later, Malitz and Papakostas [19] studied the angular resolution of planar graphs. For more results about the angular resolution see for example [13, 12, 18]. Another eleven years later, experiments by Huang et al. [15, 17] showed that the crossing resolution plays a major role in the readability of drawings. Consequently, research in that direction was intensified. In particular, right angle crossing drawings (or short RAC drawings) were introduced by Didimo, Eades and Liotta [10]. Van Kreveld [21] showed among other results for RAC drawings, that the angular resolution in RAC drawings can be by an arbitrary factor larger than the angular resolution in plane drawings. The \NP-hardness of deciding whether a given drawing admits an RAC drawing was proven by Argyriou, Bekos and Symvonis [3]. For a recent survey by Didimo on RAC drawings, see [9].
For AC drawings (drawings with crossing resolution ), Dujmović et al. [11] showed an upper bound on the number of edges of . For the two special classes of RAC drawings and AC drawings with better upper bounds are known [1]. More precisely, Didimo et al. showed that RAC drawings have at most edges [10] and that this bound is tight. For AC drawings with , Ackerman and Tardos proved an upper bound of at most edges [1]. This bound is due to the fact that quasi-planar drawings (drawings without three pairwise crossing edges) have at most edges and drawings that are not quasi-planar have a crossing angle of at most .
Argyriou, Bekos and Symvonis [4] were the first to study the total angular resolution, calling it just total resolution. They presented drawings of complete graphs and complete bipartite graphs with asymptotically optimal total angular resolution. Recently, Bekos et al. [5] presented a new heuristic for finding a drawing of a given graph with high total angular resolution which performed superior to earlier heuristics like [4, 16] on the considered test cases. For a recent survey on angular resolution, crossing resolution and total angular resolution see Okamoto [20].
Outline
In this work we show that almost all graphs with have at most edges, list the finitely many such graphs that have more than edges and show that this bound is tight. Moreover, we show the following tight upper bounds on the number of edges for graphs with larger total angular resolution: for , for (and ), and for (and ). We also prove that it is \NP-hard to determine whether .
Further, we present an infinite family of graphs with , for which every proper subgraph of has . We conclude this work with a bound for the number of edges that can be removed from the complete graph without changing its total angular resolution.
2 Upper bounds on the number of edges
In this section we study the relation between the total angular resolution and the maximal number of edges. First we need some definitions. Every straight-line drawing (of a graph ) partitions the plane into connected regions which are called cells of . The planarization of a drawing is the drawing in which we replace every crossing by a vertex so that this new vertex splits both crossing edges into two edges. Furthermore, every edge in has two sides and every side is incident to exactly one cell of . Note that both sides of an edge can be incident to the same cell. A connected drawing is a drawing such that corresponds to a drawing of a plane connected graph. We define the size of a cell of a connected drawing as the number of sides in incident to this cell.
2.1 Graphs with
In this section we show that for almost all graphs with the number of edges is bounded by . We start by showing a bound for the number of edges in a connected drawing depending on the size of the unbounded cell of .
Lemma 1**.**
Let be a connected drawing with vertices, edges and . If the unbounded cell of has size , then .
Proof.
If at least three edges cross each other in a single point, then there exists an angle with at most at this crossing point. Therefore, every crossing of the drawing is incident to exactly two edges. We planarize and get and where is the number of crossings in , is the number of vertices of , and is the number of edges of . Since is a plane drawing, we can use Euler’s formula to compute the number of faces in as
[TABLE]
Moreover, every bounded cell of has size at least , as otherwise would contain a triangle, implying an angle of at most . By definition, the unbounded cell of has size and we obtain the inequality
[TABLE]
Combining Equation (1) and Inequality (2) with gives
. ∎
From Lemma 1 it follows directly that a connected drawing on vertices and with fulfills . Note that this bound is only two edges away from the optimal upper bound.
We proceed to prove the bound of for disconnected drawings.
Lemma 2**.**
Let be a disconnected drawing on vertices with . Then, or consists of three vertices and one edge (Exception E0 in Figure 2).
Proof.
Assume that consists of components , , where has vertices and edges. Furthermore, holds. By Lemma 1 we get for every component. If , this directly implies
[TABLE]
Now consider . If contains at least 2 edges, then the size of the unbounded cell of is at least . So we get by Lemma 1. This gives
[TABLE]
This implies that we only have to check drawings with exactly two connected components and each has at most one edge. If both and consist of two vertices and one edge, then we have edges. If is a drawing on vertices with edges, then we have Exception E0. ∎
Now we prove the bound for connected drawings. To further improve the bound from Lemma 1, the following lemma is useful.
Lemma 3**.**
Let be a plane connected drawing where the boundary of the unbounded cell is a simple polygon with vertices. Let the inner degree of a vertex of be the number of edges incident to that lie in the interior of . If , then holds.
Proof.
Assume to the contrary that and . The sum of all inner angles in any simple polygon with vertices is . The number of all inner angles in incident to vertices in is . Since every angle in is larger than , all inner angles incident to vertices of sum up to strictly more than . This contradicts that the sum of the inner angles is . Therefore, we have . ∎
Lemma 4**.**
Let be a connected plane drawing on vertices, where is not a path on vertices and not a -cycle. If , then .
Proof.
The unbounded cell of cannot have size , as in this case the convex hull of the drawing is a triangle and we have . If the drawing has an unbounded cell of size at least and , then follows directly from Lemma 1. Otherwise, the unbounded cell of has size , which, as is not a path on vertices, implies that the boundary of is a 4-cycle . By Lemma 3 and the fact that is not a 4-cycle, contains exactly one edge with one vertex in the interior of and the other vertex on the boundary of . Let be the drawing we obtain by deleting all vertices and edges of and also the edge . The drawing is connected and has vertices and edges, where and . By Lemma 1 we know that and we derive . ∎
Two drawings are combinatorially equivalent if all cells are bounded by the same edges, all crossing edge pairs are the same, and for each edge the order of crossings along is the same. We extend Lemma 4 in the following way.
Lemma 5**.**
*Let be a connected plane drawing on vertices with edges and . Then, unless is combinatorially equivalent to one of the exceptions E1–E9 listed below and depicted in Figure 2.
- E1
A tree on at most 4 vertices. 2. E2
A plane -cycle. 3. E3
A plane -cycle with one additional vertex connected to one vertex of the -cycle. The vertex can be inside or outside the cycle. 4. E4
A plane -cycle. 5. E5
A plane -cycle with one vertex inside connected to two non-neighboring vertices of the -cycle. 6. E6
A plane -cycle with an edge inside, connected with 3 edges to the 5-cycle such that the interior of the 5-cycle is partitioned into two 4-faces and one 5-faces. 7. E7
A plane -cycle with an additional diagonal between opposite vertices. 8. E8
A plane -cycle with an additional vertex or edge inside, connected with 3 or 4, respectively, edges to the 6-cycle such that the interior of the 6-cycle is partitioned into 3 or 4, respectively, 4-faces. 9. E9
A plane -cycle with either a path on 3 vertices or a 4-cycle inside, connected with 5 edges to the 6-cycle such that the interior of the -cycle is partitioned into 4 or 5, respectively, 4-faces.
Proof.
Let be a subdrawing of consisting of all vertices that are not on the unbounded cell and of all edges that are not incident to a vertex on the unbounded cell. Assume has vertices and edges. We distinguish four cases, depending on the size of the unbounded cell.
Case 1
The unbounded cell has size . If the drawing has only one cell, then it is Exception E1a. Otherwise, the boundary of the unbounded cell is a 4-cycle and we have . As by Lemma 3, there is at most one edge in from a vertex of to , we have .
If there is at most one vertex inside , then we have Exception E2 or E3b. So assume that there are at least two vertices inside . Since there is at most one edge from a vertex of to the interior and is connected, thus has at least one edge. So the unbounded cell of has size at least . Hence, by Lemma 1 for , it holds that and we obtain
[TABLE]
Case 2
The unbounded cell has size . In this case, the outer boundary must be a -cycle: The only other possibility would be a triangle with an attached edge, but in that case we would have . Hence, we have . If there are at most two adjacent vertices inside the 5-cycle that are connected with edges to the 5-cycle, then we have one of the Exceptions E4, E5, or E6. So assume that there are at least 3 vertices in the interior. Due to Lemma 3, there are at most three edges connecting the interior to the -cycle and the -cycle itself has edges, that is, . If is connected, then the size of the unbounded cell of is at least and we have by Lemma 1. Otherwise consists of two or three connected components. By Lemma 2 we have unless consists of three vertices and an edge, which gives , or it contains fewer than three vertices. The only disconnected drawing with fewer than three vertices is a drawing consisting of two vertices, which gives . So, in all cases we get and hence have
[TABLE]
Case 3
The unbounded cell of the drawing has size . If has only one cell (i.e. only the unbounded cell), we have Exception E1b or E1c. Otherwise the boundary of the unbounded cell of either consists of two triangles sharing a vertex () or is a -cycle with an attached edge or a -cycle. So there are two cases we have to consider.
- •
If is a -cycle with an attached edge, we use similar arguments as in Case 1. If there is no vertex inside the -cycle, then we have Exception E3a. If we have at least one point inside the 4-cycle, then by Lemma 1 we have . So we get
[TABLE]
- •
If is a -cycle, then by Lemma 3 we can have at most edges connecting the interior to the 6-cycle. First we consider the case that is connected. If and , then and fulfills by Lemma 4 unless is a path on 3 vertices or a 4-cycle. Furthermore, we know that and . If , then
[TABLE]
Consider now the case that or is a path on 3 vertices or a 4-cycle. These cases can be checked by hand. Therefore, we have Exceptions E7 and E8 if , and Exceptions E9 if is a path on 3 vertices or a 4-cycle.
If is not connected and , then either fulfills , or consists of three vertices and an edge (by Lemma 2), or consists of two vertices. If fulfills or consists of three vertices and an edge, then we have . So consider the case that consists of two vertices. This means that one of the two inner vertices has degree at least in the drawing . If one vertex has degree 4, then there is a triangle in our drawing which means that . Otherwise, if one vertex has degree 3 and the other one has degree 2, then we have a drawing like in Figure 3. The gray shaded -cycle has 2 edges in the interior. So due to Lemma 3 we have .
Case 4
The unbounded cell has size at least . Then we have, by Lemma 1,
[TABLE]
∎
Note that Lemma 5 considers plane drawings. Next we consider drawings with at least one crossing, whose planarizations are in the exceptions of Lemma 5. If has a crossing, then has a vertex of degree at least . The only exceptions with such a vertex are the ones of E9; see again Figure 2.
Lemma 6**.**
If we replace the vertex of degree in a drawing of E9 in Figure 2 with a crossing, then the resulting drawings have .
Proof.
If we replace the vertex of degree of Exception E9a in Figure 2 with a crossing, then we get the drawing in Figure 4, where the dashed edge is not part of the actual drawing. We want to show that . The crossing edge pair forms two angles. As indicated in Figure 4, we denote as and as , where denotes the crossing and , and are three of the endpoints of the crossing edges. Let and be the other three vertices on the unbounded cell. Since is a crossing, is inside the pentagon . The inner angles of a pentagon sum up to . All eight inner angles of the drawing, that are incident to the pentagon , are larger than . This implies that . Furthermore we have . This means we have . However, appears in , and so we have .
Now let be the drawing we get if we replace the vertex of degree in the drawing for E9b in Figure 2 with a crossing. Then is a subdrawing of and hence we get . ∎
So we have characterized all drawings which have and edges, such that is in the exceptions of Lemma 5. This leads us to the following theorem.
Theorem 7**.**
Let be a graph with vertices, edges and . Then unless either there exists a drawing of that is an exception for Lemma 5 or consists of exactly three vertices and one edge (Exception E0 in Figure 2). Further, if is a graph that forms an exception for Lemma 5, then every drawing of is drawn plane and combinatorially equivalent to an exception of Lemma 5.
Proof.
Consider a graph with vertices, edges and Then there exists a drawing of with and its planarization .
If is disconnected, then by Lemma 2 it has either edges or consists of three vertices and one edge. So for the rest of the proof we only consider connected graphs.
If three edges cross in a single point, then in this point has degree , and therefore an angle with at most . Hence every crossing involves exactly two edges and has edges and vertices. By Lemma 5 we get that or is in the exceptions. If , then . If is in the exceptions, then, as observed before, is in the exceptions. ∎
The bound of Theorem 7 is the best possible in the sense that there are infinitely many graphs with edges and .
Proposition 8**.**
For every integer there exists a graph with vertices and edges such that .
Proof.
Figure 5 illustrates drawings with vertices, edges and . We extend this family of drawings, such that for any number of vertices we have a drawing with edges and , by adding layers of 8-cycles as illustrated in Figure 6.
Let be a drawing with vertices, edges, and whose boundary is a regular -cycle . We construct a bigger drawing in the following way. Let be a regular -cycle, which is concentric to . Further, for any let and be on a ray from the common circumcenter of and . We merge with the -cycle and all edges with and call the resulting drawing .
First observe that since also holds, because the angles and with and for every . The drawing contains vertices and edges ( edges of , 8 edges on and 8 edges connecting and ). Since has vertices and edges, also . So by extending a drawing to in this way we get eight more vertices. Since every drawing depicted in Figure 5 has a regular -cycle as boundary, we are able to extend each of these drawings as described before. Doing this repeatedly, we are able to add vertices to each of the drawings for every integer . The numbers of vertices of the drawings depicted in Figure 5 cover all parities modulo eight. So there exists for any number a graph with and edges. ∎
Note that in Proposition 8 we constructed plane graphs with vertices, edges such that . In the following proposition we show, that there are drawings with vertices, edges and crossings such that .
Proposition 9**.**
For every integer , there exists a drawing with vertices, edges and crossings such that .
Proof.
Consider the drawing in Figure 7. It consists of a point , a regular -gon with circumcenter , the center of the line segment , another regular -gon with circumcenter , such that , and are on a line for and the center of the line segment . Further, we have the edge , , and . We have another -gon in Figure 7 whose points are on the line segment for and that crosses the line segment . Observe, that
Instead of adding just one -gon whose points are on the line segment for , we add of these -gons to get an extended drawing . Each of these crosses the line segment once and they do not induce other crossings. Further the respective line segments of the -gons are parallel. Hence, .
Therefore, has vertices, edges and crossing, with . ∎
2.2 Graphs with
Bodlaender and Tel [6] showed that if a graph can be embedded with angular resolution of at least , then the graph can also be embedded such that all angles at vertices have one of the values , and . Note that in any such drawing, the angle between two crossing edges is exactly . Hence, by [6], an angular resolution of at least for a graph implies . In this section, we show that graphs with have at most edges, which is tight.
Lemma 10**.**
For every , there exists a graph with vertices, edges, and .
Proof.
We will construct the graph along with a drawing for that shows . If we take a square grid with vertices on each side, then we have in total vertices and edges. So for a grid we have , which proves the statement for .
For we extend the graph in the following way; see Figure 8. We call the rightmost points of the grid from top to bottom and the topmost points from left to right. (Note that .)
If with , we place additional points , all on a common vertical line and each is to the right of for , as depicted in Figure 8(a) where the added edges are drawn heavier than the old ones. Further, we add the edges , , and , . This gives us new edges. So we have edges in total. On the other hand we get
[TABLE]
because if . So if and .
For , with , we add points as before and also add the same edges. The remaining points are placed on a horizontal line, such that is above for . We further add the edges , , and , , as depicted in Figure 8(b) where the added edges are drawn heavier than the old ones. So we have edges, which is again for and . This means that for every there exists a graph with , vertices and edges. ∎
Lemma 11**.**
Every graph with has at most edges.
Proof.
We prove the statement by contradiction. Let be a graph with vertices and edges. By Bodlaender and Tel [6] we can embed our graph, such that every angle is or . So we can embed our graph on some rectangular grid with points, such that in every column and every row there is at least one point and such that the edges are along the grid. We call this drawing .
Now we add edges and vertices to , so that this new drawing is the complete grid.
At the beginning we set , see Figure 9(a). First we add a vertex at every crossing of as depicted in Figure 9(b) and Figure 9(c). By doing this we get four edges instead of two and one new vertex. So we get two new edges and one new vertex for each crossing.
In the second step, we add corner vertices of to . If all four corner vertices are already in the drawing, then we skip this step. Without loss of generality assume that the top left corner vertex of the grid is not a vertex in the drawing. We call the topmost vertex in the leftmost column and the leftmost vertex in the topmost row as depicted in Figure 9(d). Then we add the top left corner vertex of the grid together with the edges and . Analogously, we add the remaining missing corner vertices. So for every added corner vertex we also added two edges to .
Next, we add edges between two points on the boundary of as illustrated in Figure 9(e), so that the outer face of is a rectangle with possibly some vertices on its sides. Since we already added the corner vertices in the second step, we only add edges in this step.
In the last step, we check if every vertex has full degree (degree 4 for inner vertices, degree 3 for vertices on the boundary, which are not corners, and degree 2 for corner vertices). Assume we have a vertex without full degree. Then there is a line segment of such that no edge of is along . We draw a line segment from along until we hit a vertex or an edge of . If we hit a vertex as depicted in Figure 9(f), then we add the edge to . In this case, we do not add any vertex. If we hit an edge as depicted in Figure 9(g), then we add a vertex , where we hit the edge, to . Further we add the edge to and split into and in . In this case we have one additional vertex and increased the number of edges by two in .
If every vertex has full degree, then is equal to an grid. Further, every time we added a vertex, we also increased the number of edges by two. So this new drawing has vertices and edges where . On the other hand, an rectangle grid has exactly vertices and edges. So we have
[TABLE]
This means that every graph with and vertices has at most edges. ∎
The example for a graph with vertices, edges and is planar. With some modification of the corresponding drawing we are also able to constuct drawings with crossing, vertices, edges and for any integer .
Proposition 12**.**
For every integer there exists a drawing with vertices, edges and crossings such that .
Proof.
Let be a grid where inner points are replaced by crossings. This is possible since contains inner points. Obviously, . Then has vertices and edges. Hence, has vertices and edges. Due to , we have
[TABLE]
Therefore, has vertices, edges and crossings such that . ∎
2.3 Graphs with
If a graph has , then this graph is planar, since a crossing would imply that at least one angle is at most . Also note that the construction for a graph with and edges heavily relied on -cycles. So we can improve the bound for graphs with .
Theorem 13**.**
Every graph with vertices and has at most edges. This bound is tight for infinitely many values of .
Proof.
We observe that every vertex of a graph with has degree at most . This already gives an upper bound of edges for graphs with . Let be a drawing of with . Then every vertex on the boundary of the convex hull of has degree at most . Further, consider the angles spanned by the convex hull edges of . Assume that this angle is at most for some convex hull vertex . If was incident to two edges of , then these edges would span an angle of at most . So has degree at most .
If there are at least vertices on the convex hull of , then has at most vertices of degree and at least vertices of degree at most . Therefore, has at most edges.
If there are exactly vertices on the convex hull of , then at least one of the inside angles of the boundary of the convex hull is at most . Therefore, at least one vertex on the convex hull has degree . So has at most edges. Similarly, if there are exactly vertices on the convex hull of , then at least two vertices of those have degree . Again has at most edges. This means that every graph with at least vertices and has at most edges.
Let be a drawing with , vertices and edges such that the boundary of the convex hull of is a regular -gon , also illustrated in Figure 10(b). Note, that a regular -gon has these properties. Let be the circumcenter of and let be a circle with center such that is inside . We call the crossing of the ray with , for every . The rays , , and the circle are gray in Figure 10(b). The vertex is the unique vertex with and for every where and . Let be together with the vertices and and the edges and for every . By definition we have . Looking at the quadrilateral we have . Further the angles and are both inside an angle in and both have . So we have with vertices and edges.
Starting with a regular -gon and doing this extension iteratively, there exists a drawing with with vertices and edges for every . For example, by doing this extension three times we get the drawing depicted in Figure 10(a). ∎
2.4 Graphs with
For angles we prove a family of tight bounds for the number of edges of graphs with .
Theorem 14**.**
Let . Every graph with vertices and has at most edges for , and at most edges otherwise. These bounds are tight.
Proof.
If a graph has then every vertex has degree at most two. Any such graph is a collection of cycles, paths and isolated vertices. So this graph has at most edges. If , then a regular -gon has and exactly edges. This means that a graph with has at most edges for and this bound is tight.
If , then any cycle would prevent . This means a graph with is cycle-free and has at most edges. On the other hand, if is a single path, then . So a graph with and vertices can have at most edges and this bound is tight. ∎
3 NP-hardness
Formann et al. [14] showed that the problem of determining whether a given graph admits a drawing with angular resolution of is \NP-hard. Their proof, which is by reduction from \threesat with exactly three different literals per clause, also implies the \NP-hardness of deciding whether . We adapt in the following their reduction to show the \NP-hardness of the decision problem for .
Note that every triangle of a drawing must be equilateral if The idea of the construction is to build a rigid frame with triangles and add the clause gadgets such that they are also rigid; see Figure 11 for depictions of the frame and the gadgets. Then, we add variable gadgets to the frame, such that they can only be oriented in two ways, which will correspond to the variable assignment.
Theorem 15**.**
It is \NP-hard to decide whether a graph has .
Proof.
As input we are given a \threesat formula with variables and clauses , where every clause contains exactly three different literals. Cook [7] showed that the decision question for satisfiability of such a \threesat formula is \NP-complete.
We first construct a graph for the formula. The basic building blocks of our construction consist of triangles, which, in order to obtain a total angular resolution of , must all be equilateral. We use the following gadgets; see Figure 11(a).
As clause gadget we use a sequence of four triangles that share a common vertex and in which consecutive triangles share an edge. The middle vertex with three incident edges, marked with in the figure, will be used to connect the clause gadget to its literals. We refer to as the clause vertex.
As variable gadget we use a triangle followed by a sequence of hexagons and followed by another triangle. Each hexagon consists of six triangles sharing the center point. Each non-extreme hexagon of the sequence is incident to its neighboring hexagons via two “opposite” edges. The initial triangle is incident to the first hexagon via the edge opposite to the incidence with the second hexagon. The final triangle is incident to the last hexagon via the edge opposite to the incidence with the second to last hexagon. The vertices of the initial and the final triangle that are incident to none of the hexagons are denoted as and , respectively.
For each variable , we assign one side of the hexagonal path to the positive literal and the other to the negative literal . The intermediate vertices of the th hexagon of the path are denoted with and , respectively, and are called literal vertices. They will be used for connecting a literal to its clause.
Additionally, we use a connector gadget. It consists of two triangles with a common edge. The two vertices that are incident to only one of the triangles are denoted by and , respectively.
Note that for all three gadgets, an embedding with total angular resolution is unique up to rotation, scaling and reflection of the whole gadget. Especially, for each gadget, all triangles are congruent.
For connecting the gadgets, we first build a rigid 3-sided frame as depicted in Figure 11(b). On the bottom, it consists of a straight path of triangles that alternatingly face up and down (the bottom path). On top of the rightmost triangle of this path, we add a sequence of clause gadgets stacked on top of each other (one for each clause, with the clause vertices facing to the right). The top of the figure consists of a straight path of triangles that alternatingly face down and up (the top path). We denote the leftmost vertices of degree three on the upper side of the bottom path with , and . The leftmost vertices of degree three on the lower side of the top path are denoted , and . An embedding with total angular resolution of this frame is again unique up to rotation, scaling, and reflection. We assume without loss of generality that it is embedded with being on a horizontal line, as depicted in Figure 11(b). Then, for every , and lie on a vertical line. Further, the line spanned by and has slope and the line through and has slope .
We next add the variable gadgets in the following way. For each variable , we identify the vertex of its gadget with . Further, we connect the gadget to via a connector gadget by identifying with and with , respectively. Note that in any drawing with total angular resolution of the construction so far, each variable gadget together with its connector gadget must be drawn vertically and between and . Further, the variable gadgets can be scaled by adapting the height of the connector gadget. Independent of the scaling factor, the right side of each variable gadget is always to the left of the lines and . Directionwise, variable gadgets can be drawn in two ways: either all are to the right of the or the other way around.
To complete the construction, we add a path consisting of three consecutive edges between () and whenever () is a literal of clause . An example of with the \threesat formula is depicted in Figure 13. To obtain a total angular resolution of at every clause vertex , all of these paths must start from towards the right and one of them must start horizontally. We claim that the constructed graph has a drawing with if and only if the initial \threesat formula is satisfiable.
Assume first that the \threesat formula is satisfiable. Consider a truth assignment of the variables that satisfies the formula. We draw each variable gadget such that the side corresponding to its true literal is on the right. Further, we scale all the variable gadgets such that no two vertices of different variable gadgets or of a variable gadget and a clause gadget lie on a common horizontal line (except for the vertices and ). For every clause , we choose a literal of which is true. We draw the path between the corresponding clause vertex and the matching literal vertex in the following way; see Figure 12(a). We start with a horizontal edge from to the right. Then, we continue with a edge towards the left until we reach the height of . We complete the path with a horizontal edge towards the left to . For the other literals of we draw a edge from to the right, followed by a horizontal edge to the left and a edge to the left or right, depending on whether is true or false; see Figure 12. This way, all edges of the resulting drawing are either horizontal or under an angle of and no two edges overlap. Hence we have as desired.
For the other direction, assume that this graph admits a drawing with . In , consider a clause vertex and the path which starts horizontally towards the right at . Then, the literal vertex must be on the right side of its variable gadget: If is a left vertex of a variable gadget, then must enter from the left under an angle of at most with respect to the horizontal line. Hence, lies to the left of the lines and . On the other hand, the second vertex of lies horizontally to the right of . However, to respect the restriction at , must lie to the right of the lines and , a contradiction. Now consider the set of literal vertices that are an endpoint of a path starting horizontally at some clause vertex. As these literal vertices are on the right side of their corresponding variable gadgets, the set does not contain any pair . By setting all the corresponding literals to true, we obtain a non-contradicting (possibly partial) truth assignment of the variables which has at least one literal set true for every clause. Hence, any completion to a truth assignment of all variables satisfies the formula. ∎
4 critical graph
In Section 2 we provided upper bounds on the number of edges a graph with a given total angular resolution can have, where the focus was on and . In the previous section, we have seen that deciding if a graph can be drawn with a total angular resolution of a least is NP-hard. So naturally it is of central interest to better understant the structure of graphs that do not allow for a certain total angular resolution. In the following we shed some light on graphs with , such that removing any single edge from increases its total angular resolution. In a certain sense these graphs have the minimal structure that forces to be . Thus, we call such graphs critical graphs (see below for a proper definition). A better understanding of these graphs will help to see their structure and why some graphs need while other, very similar, graphs can be drawn with a larger total angular resolution. We round up this picture in Subsection 4.2 by considering almost complete critical graphs.
4.1 critical graphs
In this section we give a construction of a family of graphs that have a small number of edges and . Since we can construct connected graphs with a small number of edges and by taking a triangle and adding a path to it, we only look at so called critical graphs. These are connected graphs with , but for all edges , holds. In other words, and every proper subgraph of a critical graph has . We focus on critical graphs.
Theorem 16**.**
There exist critical graphs on vertices with edges for infinitely many values of .
This means there exist graphs with much fewer than edges, which have . We prove Theorem 16 by giving a construction of such graphs. Before we state our construction, we consider two -cycles that share an edge.
Lemma 17**.**
Two -cycles that share an edge (denoted by ) can be embedded with only if is drawn combinatorially equivalent to in Figure 2.
Proof.
First note that has vertices and edges. Hence, is an exception for Theorem 7. Therefore, is drawn like in Figure 2. ∎
With the help of Lemma 17 we show the existence of a graph with edges and . To this end, we first define a graph consisting of a sequence of 4-cycles glued together along opposite edges, which is essentially a circularly closed ladder graph on a Möbius strip.
Definition 18**.**
We define the graph as follows. Let , , be the vertices of . Further, we define and . The edges of are
- •
* for ,*
- •
* and for .*
Figure 14 depicts the graph , where the dashed and the dashed-dotted edge each highlight one instance of the two different edge types. Observe that has vertices and edges.
Lemma 19**.**
Let be an integer. Then is a critical graph.
Proof.
First we show that . We assume to the contrary that we can embed with . Define as the -cycle for . If we can embed with , then every is a plane -cycle for every and and are interior disjoint (with ) due to Lemma 17. First place a point into every . We draw a closed curve through all such that between and in and , crosses only the edge and this edge is crossed only once between and .
This is possible, because and are interior disjoint for any . Since and are interior disjoint and every is plane, all vertices are on the same side and all the vertices are on the other side of if we walk along . But then and are on different sides which gives us the contradiction since . Therefore .
To show that is critical, we have to prove that for all edges holds. In Figure 14 we see that the graph consists of edges like , which are incident to one cycle of length and edges like , which are incident to two cycles of length . So we have two cases: Does hold and does hold?
Figure 15(a) and Figure 15(b) depict how and , respectively, can be embedded with . The dotted edge in both figures is the removed edge. with can be embedded in a similar way (for example, by apropriately subdividing the two opposite edges of a crossing-free 4-cycle that are incident to only that 4-cycle and connecting the subdivision points). This completes the proof that is critical. ∎
Now we have all the results to prove Theorem 16.
Proof of Theorem 16.
The graph with is critical by Lemma 19. Furthermore has edges since it is cubic. Therefore there exist critical graphs on vertices with edges for infinitely many values . ∎
4.2 Almost complete graphs
Let be the complete graph on vertices. Argyriou, Bekos and Symvonis [4] showed that . In this section we show how the deletion of a few edges affects the total angular resolution. We start by showing that the removal of a small number of edges does not change the total angular resolution.
Theorem 20**.**
Every graph with vertices and at least edges has .
Proof.
Consider a drawing of the complete graph with vertices on the boundary of the convex hull and inner vertices.
A triangle of is called special if its vertices are on and the three inner angles of are split in total into at least angles in . Note, that the existence of a special triangle implies . If we delete a set of at most edges of , then there are three vertices on which are not incident to any deleted edge. So these three vertices span a special triangle of where is the drawing without the edges in .
On the other hand, is an -cycle and its inner angles sum up to . Since we have , the inner angles of are split into angles. If the inner angles of are split into at least angles then the total angular resolution is at most . So we can delete up to edges and still have a drawing with .
Therefore, we want to minimize the maximum of and over all possible values of . This minimum is obtained for . So any graph with at least edges still has . ∎
Starting from the complete graph , Theorem 20 implies that we have to delete more than edges to increase the total angular resolution. On the other hand, we can improve the total angular resolution by deleting edges, which are incident to the same vertex. This creates a graph that is essentially with an additional vertex connected to the by a single edge and thus . We now show that the total angular resolution can be increased by removing even fewer edges.
Proposition 21**.**
For any there exists a graph with vertices, at least edges and .
Proof.
We take a drawing of where the vertices span a regular -gon . Note that . Let be the circumcenter of and be the corresponding circumcircle. Let be a point on the line spanned by and such that as in Figure 21. Observe that the angle since is the shortest edge of the triangle .
Let the tangents of through touch at the points and . Let be the tangent point which lies on the arc between and such that is closer to than . Observe that holds for . Since and , the triangle is half of an equilateral triangle. So and . Further holds and therefore . So holds for .
We place points on on the shorter arc between and as depicted in Figure 16 such that is and for . Note that the bound is implied by . In Figure 16 the points and are marked with a red cross. Since for , there is an index with such that is on the arc between and including for all .
Let be a set of vertices of such that for any there exists exactly one point of such that is on the arc from to . So contains points. Note that is not in .
Let be the set of vertices of such that if and only if . Let . If or , then holds by construction. If , then holds since . If , then follows in a similar way. Therefore, for any two points , holds.
So the graph with vertices and , and edges for any and for has and edges. Hence, has at least edges. ∎
Proposition 21 holds for all but is most likely not tight for infinitely many values of . If the number of vertices is odd, then the following proposition gives us a better bound for the number of edges.
Proposition 22**.**
For any odd there exists a graph with vertices, edges and .
Proof.
This is achieved by the following construction. We take a drawing of where the vertices form a regular -gon. Next, we replace the common crossing of all main diagonals , , by a vertex . We also replace every main diagonal by the edges and for every . We denote the resulting drawing with . Figure 17 depicts for vertices.
Since we only replaced edges and do not have edges which are on top of each other, we have . Further, has edges. So has edges fewer than . ∎
We have shown that in a complete graph we can delete edges for arbitrary and edges for odd to increase the total angular resolution. For odd , deleting any edges does not affect the total angular resolution but deleting edges can improve it. We conjecture that Proposition 22 is tight.
5 Some special graphs
In this section we present some special graphs and their total angular resolution.
5.1 The Petersen graph
First we study the Petersen graph.
Theorem 23**.**
Let be the Petersen graph. Then .
Proof.
has 10 vertices and 15 edges. By Theorem 7, since and is not in the exceptions, we have . On the other hand, two drawings of with total angular resolution of are shown in Figure 18(b). This means that we have . ∎
The Petersen graph was generalized in the following way [8].
Definition 24**.**
Given two integers and with , the generalized Petersen graph is defined as follows. Denote the vertices of the graph . Then the edges of are , and for , where if and .
Note that the Petersen graph is the graph . The question is to determine for which values of and the generalized Petersen graph admits a drawing with larger total angular resolution than the Petersen graph. Note that since contains triangles. Especially, is obtained by the classic drawing of . In the following lemma we show that for any .
Proposition 25**.**
For any , the generalized Petersen graph has .
Proof.
We give a construction for a drawing of for every with . The drawing depends on whether is even or odd.
Case 1: is odd.
Figure 20(a) depicts a drawing of with . For any odd , we modify to a drawing , as illustrated in Figure 20(b) for , such that is a drawing of with . Note, that the edges and cross with a angle in .
First we take and rename the point to and to . We place the point in the interior of the line segment . Then we place on such that is parallel to and on such that is parallel to . Further we place on such that is parallel to .
For we place points in the interior of the line segment from left to right. For odd we place onto such that is parallel to . For even we place onto such that is parallel to . Then the vertices and , , span the drawing of .
All angles of that already appear in are greater than . Further, all angles that are in the subdrawing induced by the vertices and with have by construction. Also the angles incident to one of the vertices are greater than . Therefore, .
Case 2: is even.
If is even, then contains the two cycles and which are both of length . We draw as a regular polygon . Let be the center of . We place the points , with even inside such that for each , is on the line segment , and the length of all such line segments is identical. We then place the points with odd inside the polygon spanned by such that for each , is on the line segment , and the length of all such line segments is again identical. Denote the resulting drawing by ; see Figure 21 for a depiction of .
In , every crossing is between two line segments and for odd with where . Since , and are collinear, and since and , also holds. Hence is an isosceles triangle. The line spanned by and is the angle bisector of the angle . Therefore, the angles at the crossing of and are . This means that an angle in with at most cannot be at a crossing of the drawing. It remains to consider the angles at each vertex. The smallest such angles appear at the vertices and have size . It follows, that since .
∎
5.2 Graphs where crossings help to improve
In this section we present some planar graphs where any drawing with is not a plane drawing. Van Kreveld [21] already showed that the angular resolution of RAC drawings is in some cases better than the angular resolution of plane drawings. Our main interest for this section is to find a graph, where if is plane but .
If we look at the complete graph , we see in Figure 22(a), that every plane drawing has . When we place the points as vertices of a square like in Figure 22(b), then we have . Therefore, we get in this case a larger if has crossings. Another example can be seen in Figure 23. However, neither of these examples satisfies and if is plane.
The graph in Figure 24(b) has . Every face of a plane embedding of , which can be seen in Figure 24(a), has at most edges. Since the graph is -regular and the outer face has at most edges, Lemma 3 gives us for every plane drawing of the graph of Figure 24(a).
6 Conclusion and open problems
In this work we have shown that, up to a finite number of well specified exceptions of constant size, any graph with has at most edges. For larger angles we were able to obtain similar bounds: For graphs with we have , for we have , and for we have for . These bounds are tight. We conjecture that almost all graphs with have at most edges.
From a computational point of view, we have proven that deciding whether a given graph admits a drawing with total angular resolution at least is in general \NP-hard. The same was known before for at least [14]. On the other hand, for large angles, the recognition problem eventually becomes easy (for example, can be drawn with if and only if it is the union of cycles of at least 7 vertices and arbitrary paths). This yields the following open problem: At which angle(s) does the decision problem change from NP-hard to polynomial-time solvable?
We introduced critical graphs and showed the existence of critical graphs with edges. It remains open whether there are critical graphs with fewer than edges. More generally, how many edges does the smallest critical graph have for a fixed ? It is also open, for which values of there exist critical graphs with more than vertices, where is arbitrarily large. For the complete graph we proved that we can delete any edges of and still get . It is open whether this bound is tight. On the other hand we presented two families of drawings, which have and many edges. As a related question, what is the smallest number of edges a graph with vertices and can have?
We showed that the Petersen graph has . For the generalized Petersen graphs we showed that for .
Acknowledgments
This work started during the Japan-Austria Joint Seminar Computational Geometry Seminar with Applications to Sensor Networks supported by the Japan Society for the Promotion of Science (JSPS) and the Austrian Science Fund (FWF) under grant AJS 399. We would like to thank all participants for creating a stimulating research environment. Oswin Aichholzer, Irene Parada, Daniel Perz, and Birgit Vogtenhuber were partially supported by the FWF grants W1230 (Doctoral Program Discrete Mathematics) and I 3340-N35 (Collaborative DACH project Arrangements and Drawings). Yoshio Okamoto was partially supported by JSPS KAKENHI Grant Numbers JP20H05795 and JP20K11670. An extended abstract of parts of this work has been presented at the 27th International Symposium on Graph Drawing and Network Visualization (2019) [2].
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] E. Ackerman and G. Tardos. On the maximum number of edges in quasi-planar graphs. Journal of Combinatorial Theory, Series A , 114:563–571, 2007.
- 2[2] O. Aichholzer, M. Korman, Y. Okamoto, I. Parada, D. Perz, A. van Renssen, and B. Vogtenhuber. Graphs with large total angular resolution. In International Symposium on Graph Drawing and Network Visualization , pages 193–199. Springer, 2019.
- 3[3] E. N. Argyriou, M. A. Bekos, and A. Symvonis. The Straight-Line RAC Drawing Problem is NP-Hard. In 37th International Conference on Current Trends in Theory and Practice of Computer Science (SOFSEM 2011) , pages 74–85, Berlin, Heidelberg, 2011. Springer.
- 4[4] E. N. Argyriou, M. A. Bekos, and A. Symvonis. Maximizing the Total Resolution of Graphs. The Computer Journal , 56(7):887–900, 2013.
- 5[5] M. A. Bekos, H. Förster, C. Geckeler, L. Holländer, M. Kaufmann, A. M. Spallek, and J. Splett. A Heuristic Approach Towards Drawings of Graphs with High Crossing Resolution. The Computer Journal , 64(1):7–26, 11 2019.
- 6[6] H. L. Bodlaender and G. Tel. A Note on Rectilinearity and Angular Resolution. Journal of Graph Algorithms and Applications , 8:89–94, 2004.
- 7[7] S. A. Cook. The complexity of theorem-proving procedures. In Proceedings of the third Annual ACM Symposium on Theory of Computing , pages 151–158, 1971.
- 8[8] H. S. Coxeter. Self-dual configurations and regular graphs. Bulletin of the American Mathematical Society , 56(5):413–455, 1950.
