A 2-Approximation for the Height of Maximal Outerplanar Graph Drawings
Therese Biedl, Philippe Demontigny

TL;DR
This paper improves the approximation factor for drawing maximal outerplanar graphs with minimal height from 4 to 2 by introducing the umbrella depth parameter and an efficient algorithm.
Contribution
It introduces the umbrella depth parameter and provides a 2-approximation algorithm for the height of maximal outerplanar graph drawings.
Findings
The algorithm achieves height at most twice the umbrella depth.
Umbrella depth is a lower bound for the height of any poly-line drawing.
The approximation factor is improved from 4 to 2.
Abstract
In this paper, we study planar drawings of maximal outerplanar graphs with the objective of achieving small height. A recent paper gave an algorithm for such drawings that is within a factor of 4 of the optimum height. In this paper, we substantially improve the approximation factor to become 2. The main ingredient is to define a new parameter of outerplanar graphs (the so-called umbrella depth, obtained by recursively splitting the graph into graphs called umbrellas). We argue that the height of any poly-line drawing must be at least the umbrella depth, and then devise an algorithm that achieves height at most twice the umbrella depth.
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 Numerical Analysis Techniques · Digital Image Processing Techniques
A 2-Approximation for the Height of Maximal Outerplanar Graph Drawings
Therese Biedl David R. Cheriton School of Computer Science, University of Waterloo, Waterloo, Ontario N2L 1A2, Canada. [email protected]. Supported by NSERC.
Philippe Demontigny [email protected]. Part of this work appeared as the author’s Master’s thesis at UWaterloo.
Abstract
In this paper, we study planar drawings of maximal outerplanar graphs with the objective of achieving small height. A recent paper gave an algorithm for such drawings that is within a factor of 4 of the optimum height. In this paper, we substantially improve the approximation factor to become 2. The main ingredient is to define a new parameter of outerplanar graphs (the so-called umbrella depth, obtained by recursively splitting the graph into graphs called umbrellas). We argue that the height of any poly-line drawing must be at least the umbrella depth, and then devise an algorithm that achieves height at most twice the umbrella depth.
1 Introduction
Graph drawing is the art of creating a picture of a graph that is visually appealing. In this paper, we are interested in drawings of so-called outer-planar graphs, i.e., graphs that can be drawn in the plane such that no two edges have a point in common (except at common endpoints) and all vertices are incident to the outer-face. All drawings are required to be planar, i.e., to have no crossing. The drawing model used is that of flat visibility representations where vertices are horizontal segments and edges are horizontal or vertical segments, but any such drawing can be transformed into a poly-line drawing (or even a straight-line drawings if the width is of no concern) without adding height [6].
Every planar graph has a straight-line drawing in an -grid [18, 13]. Minimizing the area is NP-complete [16], even for outer-planar graphs [7]. In this paper, we focus on minimizing just one direction of a drawing (we use the height; minimizing the width is equivalent after rotation). It is not known whether minimizing the height of a planar drawing is NP-hard (the closest related result concerns minimizing the height if edges must connect adjacent rows [15]). Given the height , testing whether a planar drawing of height exists is fixed parameter tractable in [10], but the run-time is exceeding large in . As such, approximation algorithms for the height of planar drawings are of interest.
It is known that any graph with a planar drawing of height has [11], where is the so-called pathwidth of . This makes the pathwidth a useful parameter for approximating the height of a planar graph drawing. For a tree , Suderman gave an algorithm to draw with height at most [19], making this an asymptotic -approximation algorithm. It was discovered later that optimum-height drawings can be found efficiently for trees [17]. Approximation-algorithms for the height or width of order-preserving and/or upward tree drawing have also been investigated [1, 2, 8].
For outer-planar graphs, the first author gave two results that will be improved upon in this paper. In particular, every maximal outerplanar graph has a drawing of height at most [3] and of height [5]. Note that the second result gives a 4-approximation on the height of drawing outerplanar graphs, and improving this “4” is the main objective of the current paper. A number of results for drawing outer-planar graphs have been developed since paper [3]. In particular, any outerplanar graph with maximum degree admits a planar straight-line drawing with area [14], or with area [12]. The former bound was improved to area [9]. Also, every so-called balanced outer-planar graph can be drawn in an -grid [9].
In this paper, we present a 2-approximation algorithm for the height of planar drawings of maximal outer-planar graphs. The key ingredient is to define the so-called umbrella depth in Section 3. In Section 4, we show that any outerplanar graph has a planar drawing of height at most . (We actually show a height of , where the bonnet depth is another newly defined graph parameter.) This algorithm is a relatively minor modification of the one in [5], albeit described differently. The bulk of the work for proving a better approximation factor hence lies in proving a better lower bound, which we do in Section 5: Any maximal outerplanar graph with a planar drawing of height has . This proves that our result is a 2-approximation for the optimal height, which must fall in the range .
2 Preliminaries
Throughout this paper, we assume that is a simple graph with vertices and edges that is maximal outer-planar. Thus, has a standard planar embedding in which all vertices are in the outer face (the infinite connected region outside the drawing) and form an -cycle, and all interior faces are triangles. We call an edge of a cutting edge if is disconnected, and a non-cutting edge otherwise.111The cutting edges are exactly those edges for which in the standard embedding both incident faces are interior, but we prefer to phrase this and the following definitions independent of the standard embedding since we do not necessarily draw the graph in the standard embedding. In an outer-planar graph, any cutting edge has exactly two cut-components, i.e., there are two maximal outerplanar subgraphs of such that and .
The dual tree of is the weak dual graph of in the standard embedding, i.e., has a vertex for each interior face of , and an edge between two vertices if their corresponding faces in share an edge. An outerplanar path is a maximal outerplanar graph whose dual tree is a path. We say that connects edges and if is incident to and is incident to , where and are the first and last face in the path that is the dual tree of . An outerplanar path with is a triangle and connects any pair of its edges. Since any two interior faces are connected by a path in the dual tree, there exists an outerplanar path connecting and for any two edges .
**Graph drawing: ** A drawing of a graph consists of a point or an axis-aligned box for every vertex, and a polygonal curve for every edge. We only consider planar drawings where none of the points, boxes, or curves intersect unless the corresponding elements do in the original graph. In this paper, a planar drawing is not required to reflect a graph’s given planar embedding. In a flat visibility representations vertices are represented by horizontal line segments, and edges are vertical or horizontal straight-line segments. (For ease of reading, draw vertices as boxes of small height in our illustrations.) In a poly-line drawing vertices are points and edges are polygonal curves, while in a straight-line drawing vertices are points and edges are line segments. In this paper, we only study planar flat visibility representations, but simply speak of a planar drawing, because it is known that any planar flat visibility representation can be converted into a planar straight-line drawing of the same height and vice versa [6].
We require that all defining features (points, endpoints of segments, bends) are placed at points with integer -coordinates. A layer (or row) is a horizontal line with integer -coordinate that intersects elements of the drawing, and the height is the number of layers. We do not enforce integer -coordinates since we do not focus on minimizing the width. We can always achieve width (without adding height) for visibility representations and for the poly-line drawings obtained from them [6].)
3 Umbrellas, bonnets and systems thereof
In this section, we introduce a method of splitting maximal outerplanar graphs into systems of special outerplanar graphs called umbrellas and bonnets.
Definition 1**.**
Let be a maximal outer-planar graph, let be a subgraph of with , and let be a non-cutting edge of . We say that is an umbrella with cap if it can be written as the union of three outerplanar paths , , and such that:
* (the handle) connects to some other non-cutting edge of ,* 2. 2.
* (the fan at ) contains only and neighbours of . (the fan at ) contains only and neighbours of .* 3. 3.
* and are edge-disjoint. and have exactly one edge (incident to ) in common; and have exactly one edge (incident to ) in common.* 4. 4.
All neighbours of and belong to .
See also Figure 2(a). We allow the fans to be empty, but must have at least one interior face (the one incident to ). Any edge of that is a cutting edge of , but not of , is called an anchor-edge of in . (In the standard embedding, such edges are on the outer-face of but not on the outer-face of .) The hanging subgraph with respect to anchor-edge of in is the cut-component of with respect to cutting-edge that does not contain the cap of . We often omit “of in ” when umbrella and super-graph are clear from the context.
Definition 2**.**
Let be a maximal outerplanar graph with , and let be a non-cutting edge of . An umbrella system on with root-edge is a collection of subgraphs of for some that satisfy the following:
* (the root umbrella) is an umbrella with cap ,* 2. 2.
* has anchor-edges. We denote them by for , and let be the hanging subgraph with respect to .* 3. 3.
For , (the hanging umbrella system) is an umbrella system of with root-edge .
The depth of such an umbrella system is .
Define (the (rooted) umbrella depth of ) to be the maximum depth over all umbrella systems with root-edge . Note that the umbrella depth depends on the choice of the root-edge; define the free umbrella depth to be the minimum umbrella depth over all possible root-edges. (One can show that the free umbrella depth is at most one unit less than the rooted umbrella depth for any choice of root-edge; see the appendix.)
**Bonnets: ** A bonnet is a generalization of an umbrella that allows two handles, as long as they go to different sides of the face . Thus, condition (1) of the definition of an umbrella gets replaced by
(1’) (the ribbon) connects two non-cutting edges and contains , and their common neighbour.
Other than that, bonnets are defined exactly like umbrellas. See also Figure 2(b). We can also define a bonnet system, root bonnet, etc., exactly as for an umbrella system, except that “bonnet” is substituted for “umbrella” everywhere. Let (the rooted bonnet-depth of ) be the minimum possible depth of a bonnet system with root-edge , and let be the minimum bonnet-depth over all choices of root-edge. Since any umbrella is a bonnet, clearly for all root-edges .
We would like to emphasize that the root bonnet of a bonnet system must contain all edges incident to the ends of the root-edge. If follows that no edge incident to or can be an anchor-edge of , else the hanging subgraph at it would contain further neighbours of (resp. ). We note this trivial but useful fact for future reference:
Observation 1**.**
In a bonnet system with root-edge , no edge incident to or is an anchor-edge of the root bonnet.
4 From Bonnet System to Drawing
In this chapter, we show how to create a flat visibility representation, given a maximal outerplanar graph and a bonnet system of . The drawings we create will not be in the standard embedding of , as we will place drawings of hanging subgraphs inside an inner face of the root bonnet. For merging purposes, we draw the root-edge in a special way: It spans the top layer, which means that touches the top left corner of the drawing, and touches the top right corner, or vice versa (see for example Figure 3(b)). We first explain how to draw the root bonnet.
Lemma 1**.**
Let be the root bonnet of a bonnet system with root-edge . Then there exists a flat visibility representation of on three layers such that
* spans the top layer of .* 2. 2.
Any anchor-edge of is drawn horizontally in the middle or bottom layer.
Proof.
As a first step, we draw the ribbon of on 2 layers in such a way that and all anchor-edges are drawn horizontally; see Figure 3(a) for an illustration. (This part is identical to [5].) Consider the standard embedding of in which the dual tree is a path, say it consists of faces . We draw vertical edges between two layers, with the goal that the region between two consecutive ones belong to in this order. Place and as segments in the top layer, and with an -range such that they touch all the regions of faces that and are incident to. Similarly create segments for all other vertices. The placement for the vertices is uniquely determined by the standard planar embedding, except for the vertices incident to and . We place those vertices such that the leftmost/rightmost vertical edge is not an anchor-edge. To see that this is possible, recall that connects two non-cutting edges of that are incident to and . If , then choose the layer for the vertices of such that is drawn vertical. If , then one of its ends (say ) is the degree-2 vertex on and drawn in the top-left corner. The other edge incident to is not an anchor-edge of by Observation 1, and we draw vertically. So the leftmost vertical edge is either a non-cutting edge (hence not an anchor-edge) or edge (which is not an anchor-edge). We proceed similarly at so that the rightmost vertical edge is not an anchor-edge. Finally all other vertical edges are cutting edges of and hence not anchor-edges.
The drawing of obtained in this first step has in the top layer. As a second step, we now release as in [5]. This operation can be applied to any edge that is drawn horizontally in the top layer of a flat visibility representation. It consists of adding a layer above the drawing, moving into it, and re-routing edges by expanding vertical ones at and , and turning horizontal ones into vertical ones. In the result, spans the top layer. See Figure 3(b) for an illustration and [5] for details.
We now have a drawing of the ribbon on 3 layers where spans the top, say is in the top left corner. As the third and final step, we add the remaining vertices of the two fans. Consider the fan at , and let be the edge that it has in common with the ribbon . We have two possible cases. If is the leftmost vertical edge, then simply place the vertices of the fan to the left of and extend (see Figure 3(c)). Else, was drawn horizontally in the drawing of the first step (because it reflects the planar embedding), and therefore after releasing there is space to the right of . Into this space we insert the remaining vertices of the fan at . The fan at is added in a symmetric fashion. Figure 3(c) illustrates the second case for the fan at .
This finishes the construction of the drawing of . It remains to show that all anchor-edges are horizontal and in the bottom two layers. We ensured that this is the case in the first step. Releasing adds more vertical edges, but all of them are incident to or and not anchor-edges by Observation 1. Likewise, all vertical edges added when inserting the fans are incident to or . The only horizontal edge in the top layer is , which is not an anchor-edge. This finished the proof of Lemma 1. ∎
Now we explain how to merge hanging subgraphs.
Theorem 1**.**
Any maximal outerplanar graph has a planar flat visibility representation of height at most .
Proof.
We show by induction that any graph with a bonnet system of depth has a drawing of height where the root-edge spans the top layer. This proves the theorem when applying it to a bonnet system of depth .
Let be the root bonnet of the bonnet system, and draw on 3 layers using Lemma 1. Thus spans the top and any anchor-edge of is drawn as a horizontal edge in the bottom two layers of . If then we are done. Else add layers to between the middle and bottom layers. For each anchor-edge of , the hanging subgraph of has a bonnet system of depth at most with root-edge . By induction has a drawing on at most layers with spanning the top layer.
If is in the bottom layer of , then we can rotate (and reflect, if necessary) so that is in the bottom layer of and the left-to-right order of and in is the same as their left-to-right order in . This updated drawing of can then be inserted in the space between in . This fits because has height at most , and in the insertion process we can re-use the layer spanned by . If is in the middle layer of , then we can reflect (if necessary) so that has the same left-to-right order in as in . This updated drawing of can then be inserted in the space between in . See Figure 3(d). Since we added layers to a drawing of height 3, the total height of the final drawing is as desired. ∎
Our proof is algorithmic, and finds a drawing, given a bonnet system, in linear time. One can also show (see the appendix) that the rooted bonnet depth, and an associated bonnet system, can be found in linear time using dynamic programming. Hence the run-time to find this drawing is linear.
**Comparison to [5]: ** The algorithm in [5] has only two small difference. The main one is that it does not do the “third step” when drawing the root umbrella, thus it draws the ribbon but not the fans. Thus in the induction step our algorithm always draws at least as much as the one in [5]. Secondly, [5] uses a special construction if to save a constant number of levels. This could easily be done for our algorithm as well in the case where but . As such, our construction never has worse height (and frequently it is better).
**Comparison to [3]: ** One can argue that (see the appendix). Since [3] uses levels while ours uses levels, the upper bound on the height is better for .
5 From Drawing to Umbrella System
We now argue that any flat visibility representation of height gives rise to an umbrella system of depth at most , proving a lower bound. We first briefly sketch the idea. We assume that we have a drawing such that for some non-cutting edge we have an “escape path”, i.e., a poly-line to the outerface that does not intersect the drawing. Now find an outerplanar path that connects the leftmost vertical edge of the drawing with . This becomes the handle of an umbrella with cap , and the fans consist of all remaining neighbours of and . One can now argue that any hanging subgraph of is drawn with height at most , and furthermore, has an escape path from its anchor-edge. The claim then holds by induction.
We first must clarify some definitions. Let be a flat visibility representation, and let be a minimum-height bounding box of . A vertex has a left escape path in if there exists a polyline inside from to a point on the left side of that is vertex-disjoint from except at , and for which all bends are on layers. We say that is a left-free edge of if it is vertical, and any layer intersected by is empty to the left of . In particular, both and have a left escape path by going leftwards in their respective layers. Define right escape paths and right-free edges symmetrically; we use escape path for either a left escape path or a right escape path. See Figure 4(a).
It is easy to see that any flat visibility representation has a left-free edge, presuming the graph has minimum degree at least 2. Let be the leftmost vertical edge (breaking ties arbitrarily); there must be such an edge because the leftmost vertex in each layer has at most one horizontal incident edge, and therefore at least one vertical one. In any layer spanned by , no vertical edge is farther left by assumption. No vertex can be farther left either, else the incident vertical edge of the leftmost of them would be farther left. So is left-free.
For the proof of the lower bound, we use as handle an outerplanar path connecting to a left-free edge. Recall that the definition of handle requires that it connects to a non-cutting edge, so we need a left-free edge that is not a cutting edge. This does not exist in all drawings (see e.g. Figure 4(a)), but as we show now, we can modify the drawing without increasing height such that such an edge exists. To be able to apply it later, we must also show that this modification does not destroy a given escape path.
Lemma 2**.**
Let be a flat visibility representation of a maximal outerplanar graph .
Let be a right-free edge of , and let be a vertex that has a right escape path. Then there exists a drawing in which has a right escape path, is a right-free edge, and there exists a left-free edge that is not a cutting edge of . 2. 2.
Let be a left-free edge of , and let be a vertex that has a left escape path. Then there exists a drawing in which has a left escape path, is a left-free edge, and there exists a right-free edge that is not a cutting edge of .
In either case, the -coordinates of all vertices in are unchanged in , and in particular both drawings have the same height.
Proof.
We prove the claim by induction on and show only the first claim (the other is symmetric). Let be the leftmost vertical edge of ; this is left-free as argued above. If is not a cutting edge of , then we are done with . In particular, this is the case if when is a triangle and has no cutting edge.
So assume and is a cutting edge of . Let and be the cut-components of , named such that . Let [resp. ] be the drawing of [] induced by . Edge is left-free for both and . Reflect horizontally (this makes right-free) to obtain . By induction, we can create a drawing from in which is right-free and there is a left-free edge that is not a cutting edge of . We have , because the common neighbour of in forces a vertex or edge to reside to the left of the right-free edge . So is not a cutting edge of either.
Create a new drawing that places to the left of and extends and to join the two copies; this is possible since has the same -coordinates in and , and it is left-free in and right-free in . Also delete one copy of . See Figure 4(b). The drawing is unchanged, so will have the same right escape path in as in , and will have right-free edge and left-free non-cutting edge , as desired. ∎
We are now ready to prove the lower bound if there is an escape path.
Lemma 3**.**
Let be a flat visibility representation of a maximal outerplanar graph with height , and let be a non-cutting edge of . If there exists an escape path from or in , then has an umbrella system with root-edge and depth at most .
Proof.
We proceed by induction on . Assume without loss of generality that there exists a right escape path from (all other cases are symmetric). Using Lemma 2, we can modify without increasing the height so that has a right escape path, and there is a left-free edge in that is a not a cutting edge of . Let be the outerplanar path that connects edge and . Let be the union of , the neighbors of , and the neighbors of ; we use as the root umbrella of an umbrella system.
We now must argue that all hanging subgraphs of are drawn with height at most and have escape paths from their anchor-edges; we can then find umbrella systems for them by induction and combining them with gives the umbrella system for as desired.
To prove the height-bound, we define “dividing paths” as follows. The outer-face of in the standard embedding contains (since it is not a cutting edge) as well as . Let and be the two paths from and to along this outer-face in the standard embedding. Define the dividing path (for ) to be the poly-line in that consist of the left escape path from , then the drawing of the path (i.e., the vertical segments of its edges and parts of the horizontal segments of its vertices), and then the right escape path from . See Figure 5.
Now consider any hanging subgraph of with anchor-edge . No edge incident to is an anchor-edge, and neither is , since it is not a cutting edge. So is an edge of or (say ) that is not incident to . Therefore (and with it ) is vertex-disjoint from . In consequence, the drawing of induced by is disjoint from the dividing path . Since connects a point on the left boundary with a point on the right boundary, therefore must be entirely above or entirely below , say it is above. Since has all bends at points with integral -coordinate, therefore the bottom layer of is not available for . In consequence has height at most as desired.
Recall that belongs to and is not incident to . After possible renaming of and , we may assume that is closer to along than . Then the sub-path of from to is interior-disjoint from . This path, together with the left escape path from , is a left escape path from that resides within the top layers, because it does not contain and hence is disjoint from . We can hence apply induction to to obtain an umbrella system of depth at most with root-edge . Repeating this for all hanging subgraphs, and combining the resulting umbrella systems with , gives the result. ∎
Theorem 2**.**
Let be a maximal outerplanar graph. If has a flat visibility representation of height , then .
Proof.
Using Lemma 2, we can convert into a drawing of the same height in which some edge is a right-free non-cutting edge. This implies that there is a right escape path from , and by Lemma 3 we can find an umbrella system of with root-edge and depth . So . ∎
6 Conclusions and Future Work
We presented an algorithm for drawing maximal outerplanar graphs that is a 2-approximation for the optimal height. To this end, we introduced the umbrella depth as a new graph parameter for maximal outerplanar graphs, and used as key result that any drawing of height implies an umbrella-depth of at least . Our result significantly improves the previous best result, which was based on the pathwidth and gave a 4-approximation. We close with some open problems:
- •
Our result only holds for maximal outerplanar graphs. Can the algorithm be modified so that it works for all outerplanar graphs? Specifically, can we make an outerplanar graph maximal in such a way that the umbrella depth does not increase (much)?
- •
The algorithm from Section 4 creates a drawing that does not place all vertices on the outer face. Can we create an algorithm that minimizes or approximates the optimal height when the standard planar embedding must be respected?
- •
What is the width achieved by the algorithm from Section 4? Any visibility representation can be modified without changing the height so that the width is at most , where is the number of edges and is the number of vertices [6]. Thus the width is , but what is the constant?
- •
Is it possible to determine the optimal height for maximal outerplanar graphs in polynomial time?
Finally, are there approximation algorithms for the height or the area of drawings for other, more general planar graph classes?
Appendix A Computing the Depth
We now introduce a dynamic programming algorithm for finding the rooted bonnet depth of a maximal outerplanar graph , relative to a given fixed root-edge . (A very similar algorithm finds the umbrella depth; we leave those details to the reader.)
As before, for any cutting edge of let is the cut-component of that does not contain . It will also be convenient to define if is a non-cutting edge with , and to define . We also use the notation and define if is a single edge.
We first sketch the overall idea. Consider one subgraph and the root bonnet used in the bonnet system of minimum depth. The ribbon of is an outerplanar path connecting edges and , but we can view it as two outerplanar paths, connecting the root-edge to one of and . If is the common neighbour of and , then we can hence split the bonnet into two parts by removing the face . Each part looks much like an umbrella, except that they are rooted at and , respectively, and each of them has no fan at . See also Figure 6(a). Therefore the minimum bonnet depth can be found by finding the minimum-depth in the two subgraphs and , under the restriction that the root bonnets in the corresponding systems are such partial umbrellas. We must repeat the argument for the partial umbrellas, breaking them into a fan and a handle, and hence end up computing 6 different types of depths for each anchor edge, but 6 types are enough and hence the overall run-time is linear. We now define these variants of bonnet-depth for :
- •
A handle is an outerplanar path that connects to some non-cutting edge. See Figure 6(b). Define
[TABLE]
where is a handle and is a non-cutting edge of .
- •
The full fan at [resp. full fan at ] consists of [] and all neighbours of []. See Figure 6(c). Define
[TABLE]
where is a non-cutting edge of the full fan at . Symmetrically define using the full fan at .
- •
A partial- umbrella [resp. partial- umbrella] is an umbrella with cap that contains all neighbours of [] and in which the fan at [] is empty. See Figure 6(d). Define
[TABLE]
where is a partial- umbrella and is a non-cutting edge of . Symmetrically define using a partial- umbrella.
Lemma 4**.**
We have if is a single edge, where . Else, letting be the common neighbour of and , we have
** 2. 2.
** 3. 3.
** 4. 4.
** 5. 5.
** 6. 6.
**
Proof.
All these formulas are proved in a similar way: Consider the root bonnet of the bonnet system that achieves the depth on the left side. When splitting this bonnet into two by removing the face , we obtain two bonnets for the two subgraphs and and can argue what type they are. (Sometimes there may be two possibilities, depending on which direction the handle of went, in case of which the one that yields the smaller depth is used.) This proves “”, and equality is easily shown by putting together bonnet systems of and of the appropriate type.
We demonstrate this in detail for (5); see also Figure 6(d). So assume we have an umbrella system with root-edge that has depth and where the root-bonnet is a partial- umbrella. So consists of a handle and a fan at that includes all neighbours of not in . Since is a handle, it connects to , therefore not both edges and can be cutting edges of .
We distinguish cases. In the first case, is not a cutting edge of . Since the fan at is empty in , is not a cutting edge of either. Thus the formula for includes the term in the maximum. Furthermore, is a partial- umbrella for , and this, together with the subsystems of for its hanging subgraphs, gives a bonnet system with depth at least . Therefore in the first case.
In the second case, is not a cutting edge of . Therefore the fan of at consists of and all neighbours of except , and thus is the full fan at in the subgraph . The subsystems of for hanging subgraphs of give a bonnet system for where the root bonnet is the full fan at , hence it has depth at least . Furthermore, is a handle for . So implies a bonnet system for where the root is a handle, hence it has depth at least . Therefore in the second case. One of the two cases must apply, and so is at least as big as the smaller of the two bounds and “” holds.
To show “”, let us assume that the minimum is achieved at (the other case is similar). Find a bonnet system of of depth where the root bonnet is the full fan at , and a bonnet system of of depth where the root bonnet is a handle. Then is a partial- umbrella , and combining it with the subsystems of and gives a bonnet system of whose depth is . ∎
We can convert these formulas into a dynamic programming algorithm to compute the bonnet depth by using the standard bottom-up traversal in a tree. Given a maximal outerplanar graph , initialize for all types and for all non-cutting-edges with the exception of . Root the dual tree at the face incident to root-edge . Any node of is associated with a cutting-edge of by taking the dual of the arc that connects the node with its parent in . Traversing bottom up, when we encounter a node of (hence a face of ) we have obtained the bonnet depth values for two out of the three edges incident to already, and can compute the bonnet depth values for the third using the above formulas. This takes time since there are values and each formula can be evaluated in constant time. Finally we evaluate at the root of , which gives . Since has nodes, the total run-time is .
Theorem 3**.**
Given a non-cutting edge , there exists an algorithm to find the rooted umbrella depth of a maximal outerplanar graph with vertices.
A.1 Free vs. Rooted Umbrella/Bonnet Depth
Note that our algorithm computes the rooted bonnet depth for , since the root-edge must be given. One way to instead find the free bonnet depth is to repeat the process described above for every choice of root-edge in . This would give an algorithm for finding the free bonnet depth. One could likely compute the free bonnet depth in time by initializing for all non-cutting edges, then updating at the face where the resulting bonnet depth is minimized, and using as root-edge one near where we update last. However, as we will show now, the free bonnet depth is at most one less than the rooted bonnet depth, and therefore it does not seem worth the minor improvement to work out the details of this approach.
Lemma 5**.**
Given a maximal outerplanar graph , we have
[TABLE]
where the minimum and maximum are taken over all non-cutting edges of .
Proof.
The first equality holds per definition, and the second inequality is obvious, so we focus on the third inequality. Let be a bonnet system on with depth and let be its root-edge, which by definition is not a cutting edge. Let be an arbitrary non-cutting edge; it suffices to show . Let be the outer-planar path that connects and and define a bonnet with cap to consist of and the fans at and that include all neighbours of not in .222 is actually an umbrella, and indeed the same chain of inequalities holds if we replace ‘’ by ‘’ everywhere.
We claim that any hanging subgraph of with anchor-edge has rooted bonnet depth . Observe that is not an edge of , because is not a cutting edge, and while is disjoint from except at cutting edge . Therefore the cutting edge has the root-edge of in one component and in the other. One easily argues that therefore , because the bonnets of can be used to build a bonnet system of after trimming parts in and expanding each bonnet as to include all neighbours of the ends of its cap. Thus has an umbrella system with depth at most . Combining the umbrella systems of these hanging subgraphs with gives an umbrella system of with root-edge and depth at most as desired. ∎
Appendix B Comparison with Other Graph Parameters
In this section, we compare the bonnet depth and the umbrella depth to the pathwidth (the other graph parameter previously used for graph drawing purposes), as well as the so-called rooted pathwidth. We define these parameters first. Let be a tree. The pathwidth of is 0 if is a single node, and otherwise. Here is an arbitrary path in , and is any subtree that remains after deleting the vertices of . Any path where the minimum is achieved is called a main path of . See [19] for more details. The rooted pathwidth is quite similar, but forces the path to end at the root. Thus, let be a rooted tree. The rooted pathwidth is 0 if is empty and otherwise. Here is a path in that ends at the root of and is any subtree that remains after deleting the vertices of , where is rooted as induced by the root of . Any path where the minimum is achieved is called an rpw-main path. See [8] for more details. We write if the root is not clear from the context, and define . It is not hard to see that is attained at a leaf , because for any interior node we could have used an even longer rpw-main path to reach a leaf without making any subtree bigger.
Lemma 6**.**
*Let be a maximal outerplanar graph with dual tree ,. Then *
[TABLE]
Proof.
We first show that for any choice of root-edge . Fix any bonnet system that has depth and root-edge , and let be its root-umbrella. Recall that is split into the ribbon , which is an outer-planar path, and the two fans , which are also outer-planar paths. Use the dual tree of as main path for , and for , use the dual tree of in the subtree of that contains . Any subtree of corresponds to a hanging subgraph of that has bonnet depth at most . By induction , and as desired.
Since an umbrella is a bonnet, we have for all non-cutting edges , and the second inequality holds.
For the third inequality, assume that is attained when rooting at leaf , and let be a non-cutting edge of incident to . We claim that . Let be an rpw-main path of ; without loss of generality we may assume that connects from to a leaf of (else a longer path could be used). Let be the outerplanar path whose dual tree is ; it connects to some non-cutting edge since connects to a leaf of . Let be the umbrella obtained by adding all other neighbours of and to . For any hanging subgraph of , the dual tree is a subtree of , and therefore . By induction, , and combining the umbrella systems of the hanging subgraphs with hence shows as desired.
For the last inequality, we already know that for all choices of the root [8]. To prove the slightly tighter bound, assume that is a main path of and let be its end. Root at , and use as rpw-main path. If , then and we are done. Else and any subtree of has . The bound in [8] gives . Thus . ∎
It is known that [8], and therefore as claimed earlier. All bounds in Lemma 6 are tight, except for a ‘+1’ term. Both graphs to show this are constructed as follows. Define a small graph that has a marked root-edge and some marked anchor-edges. Obtain graph by starting with graph and attaching copies of such that the root-edge of each is one of the anchor-edges of . Let be the dual tree of graph . We leave to the reader to verify the following claims:
- •
For the construction using the graph in Figure 7(a), we have while . Therefore
[TABLE]
and the left two inequalities are tight.
- •
For the construction using the graph in Figure 7(b), we have and . Therefore
[TABLE]
and the third and fourth inequality are tight up to a ‘’ term.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Md. J. Alam, Md. A.H. Samee, M. Rabbi, and Md. S. Rahman. Minimum-layer upward drawings of trees. J. Graph Algorithms Appl. , 14(2):245–267, 2010.
- 2[2] J. Batzill and T. Biedl. Order-preserving drawings of trees with approximately optimal height (and small width), 2016. Co RR 1606.02233 [cs.CG]. In submission.
- 3[3] T. Biedl. Drawing outer-planar graphs in O ( n log n ) 𝑂 𝑛 𝑛 O(n\log n) area. In Graph Drawing (GD’01) , volume 2528 of LNCS , pages 54–65. Springer-Verlag, 2002. Full version appeared in [ 4 ] .
- 4[4] T. Biedl. Small drawings of outerplanar graphs, series-parallel graphs, and other planar graphs. Discrete and Computational Geometry , 45(1):141–160, 2011.
- 5[5] T. Biedl. A 4-approximation algorithm for the height of drawing 2-connected outerplanar graph. In Workshop on Approximation and Online Algorithms (WAOA’12) , volume 7846 of LNCS , pages 272–285. Springer-Verlag, 2013.
- 6[6] T. Biedl. Height-preserving transformations of planar graph drawings. In Graph Drawing (GD’14) , volume 8871 of LNCS , pages 380–391. Springer, 2014.
- 7[7] T. Biedl. On area-optimal planar grid-drawings. In International Colloquium on Automata, Languages and Programming (ICALP ’14) , volume 8572 of LNCS , pages 198–210. Springer-Verlag, 2014.
- 8[8] T. Biedl. Ideal tree-drawings of approximately optimal width (and small height), 2015. Co RR 1502.02753 [cs.CG]. Conditionally accepted in JGAA.
