This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

\publicationdetails

2120193154334

Non-crossing paths with geographic constraintsthanks: A preliminary version of this work appeared in Proc. 25th International Symposium on Graph Drawing and Network Visualization (GD 2017).

Rodrigo I. Silveira\affiliationmark1    Bettina Speckmann\affiliationmark2    Kevin Verbeek\affiliationmark2 Dept. de Matemàtiques, Universitat Politècnica de Catalunya, Spain
Dept. of Mathematics and Computer Science, TU Eindhoven, The Netherlands
(2018-3-1; 2019-1-29; 2019-4-23)
Abstract

A geographic network is a graph whose vertices are restricted to lie in a prescribed region in the plane. In this paper we begin to study the following fundamental problem for geographic networks: can a given geographic network be drawn without crossings? We focus on the seemingly simple setting where each region is a vertical segment, and one wants to connect pairs of segments with a path that lies inside the convex hull of the two segments. We prove that when paths must be drawn as straight line segments, it is NP-complete to determine if a crossing-free solution exists, even if all vertical segments have unit length. In contrast, we show that when paths must be monotone curves, the question can be answered in polynomial time. In the more general case of paths that can have any shape, we show that the problem is polynomial under certain assumptions.

keywords:
non-crossing connectors problem, constrained graph drawing

1 Introduction

Highway, train, and river networks, airline and VLSI routing maps, information flow over the Internet, and the flow of goods and people between different regions all have one thing in common: they can be effectively visualized as a geographic network: a graph, whose embedding is fixed, but not completely. The vertices of a geographic network are restricted to lie in a prescribed region while the edges might or might not be required to follow a particular course. In this paper we begin to study the following fundamental problem for geographic networks: can a given geographic network be drawn without crossings?

Many different formulations of this problem exist, which differ in aspects like the shape of the regions, the type of curve used to draw edges, and the type of graph being drawn. We study the seemingly simple variant where each region is a vertical segment. We restrict the edges to be drawn as simple curves that lie inside the convex hull of the vertical segments corresponding to the end vertices, to force edges to be more or less straight.

Refer to caption
Figure 1: Example of the problem. (a) Instance with three tubes. (b) A possible solution; note that this instance has no solution if all edges must be drawn as straight line segments.

More formally, we are given a graph G=(V,E)G=(V,E) and, for each vertex vVv\in V, a vertical segment region IvI_{v}. For each edge (u,v)E(u,v)\in E, we define the tube TuvT_{uv} of (u,v)(u,v) as the convex hull of IuIvI_{u}\cup I_{v}. The goal is to determine if it is possible to draw each vertex vVv\in V as a point pvIvp_{v}\in I_{v}, and each edge e=(u,v)Ee=(u,v)\in E as a path from pup_{u} to pvp_{v} that is contained in TuvT_{uv}, such that no two paths cross at a point interior to both. When this is possible, we say that the tube is connected. Moreover, we assume that GG is a matching, so we can solely focus on drawing the edges. We consider three different ways to draw the edges: straight line segments, xx-monotone curves, and arbitrary paths. Figure 1 illustrates the problem with an example.

Related work. Drawing graphs or connecting points without crossings has received considerable attention, dating back to classic routing problems (e.g., [12, 14]), and including the vast literature on planar graph drawing (see, e.g., [6, 15, 17, 19]).

The problems arising when vertices must be inside prescribed (geographic) regions have not been explored that much. In the limit case of regions that are points—thus fixed vertex positions—there is still freedom on how to draw the edges, leading to a variety of optimization problems, such as drawing edges as polygonal lines with the minimum possible number of bends [16], or minimizing the total edge length used [5]. The problem changes considerably when there is a continuous set of possible positions for each vertex, as in the problem we focus on in this paper.

To the best of our knowledge, only force-directed layout methods for some particular cases of the problem have been proposed [1]. In that work, each vertex is constrained to lie inside a given polygon, and edges must be drawn as straight line segments. Abellanas et al. [1] considered two different goals: minimizing the number of edge crossings and achieving uniform edge length. However, the methods used were heuristic and of a very different nature than those proposed here.

On the more algorithmic side, there are quite a few problems, studied under many different names, that may resemble the ones studied here, in one or more aspects. Next we review the most relevant ones.

Clustered-planarity (c-planarity for short) is a concept developed for drawing clustered graphs. Essentially, a drawing of a clustered graph is called c-planar if it is a plane drawing, and the vertices of each cluster are drawn inside their own connected region of the plane (see Feng et al. [FengCE95b] for a formal definition). Thus in c-planar drawings, vertices are constrained to lie in certain regions, but these regions are not prescribed, and moreover, the restriction is on the clusters, and not on vertices. Probably the variant most related to our problem is that of fitting planar graphs to planar maps [2]. In this setting, in addition to the clustered graph, one is given a compatible polygonal map, and the goal is to determine if there is a mapping of clusters to polygons that results in a c-planar drawing. Note, however, that the polygons are not pre-assigned to clusters, and, again, that region constraints are for clusters and not for individual vertices.

A setting closer to ours has been considered in the context of data imprecision in computational geometry, where a set of imprecise points is given, meaning that each point can be drawn anywhere inside a given region. In particular, it has been shown that if the regions are vertical line segments or scaled copies of an arbitrary shape, and the paths are straight line segments, determining if one can draw a cycle without crossings is NP-hard [13]. Thus this differs from our setting mainly in the type of graph: cycles, while we focus on matchings.

Aloupis et al. [3] studied the problem of non-crossing matchings between points and geometric objects. In that problem, each edge connects a point to a geometric object or to a set of points. Aloupis et al. [3] showed that the problem is polynomially solvable in some special cases, most notably when matching a point to one of two other points, and NP-hard when the number of options increases. In particular, they showed that our problem for vertical segment regions and straight line segment paths is NP-hard, a fact that was also proved earlier in the Master’s thesis of one of the authors of the current paper [18]. The same problem with unit-size square regions, but drawing general planar graphs instead of matchings, was also shown to be NP-hard [4].

A problem similar to the second variant studied in this paper, where edges are drawn as xx-monotone paths, is that of Manhattan-geodesic embeddings of planar graphs [8]. The goal there is to connect points with non-crossing paths that are rectilinear and xyxy-monotone. This problem was recently shown to be NP-hard [9]. This is in contrast to our problem, which we show to be solvable in polynomial time. Moreover, our problem differs from the Manhattan-geodesic embeddings problem in two important aspects: endpoints of edges are not fixed, and paths are restricted to lie inside tubes.

Finally, the most relevant previous work in our context deals with the non-crossing connector problem, studied by Kratochvíl and Ueckerdt [11]: given mm sets of points PiP_{i}, 1im1\leq i\leq m, and a region RiR_{i} (with PiRiP_{i}\subset R_{i}) for each ii, the goal is to compute a curve inside each region RiR_{i} that goes through all the points in PiP_{i} and no two curves cross. Kratochvíl and Ueckerdt [11] showed that non-crossing connectors always exist if the regions are pseudo-disks (i.e., the boundaries of any two regions intersect in at most two points). Their proof proceeds constructively, providing a method to connect the points within each region while avoiding crossings with other connections. For regions that are not pseudo-disks, existence can be decided in polynomial time only for a few cases, while in general the problem is NP-complete. An important difference with our setting is that all given points PiP_{i} in each region must be connected.111Confusingly, Kratochvíl and Ueckerdt [11] quoted one of the current authors as stating that our problem is NP-complete for monotone paths, which is not the case. Also, they claimed that in the aforementioned Master’s thesis [18] it was proven that the problem is NP-complete for unit segments, but that is not the case either: the reduction there requires segments of several lengths. Still, we will build on top of this result for the case of arbitrary paths, presented in Section 4.

Results and organization.

We study the problem for different restrictions on the path representing the edges. In Section 2 we show that the problem is NP-complete if the paths must be straight line segments, even when the vertical segments defining the tubes have unit length. In Section 3 we show that, if paths must be xx-monotone curves, we can decide in polynomial time if a crossing-free drawing exists. For arbitrary paths we can provide such a polynomial-time algorithm only under certain assumptions, as shown in Section 4.

2 Straight line paths

In this section we show that, if the edges must be drawn as straight line segments, the problem is NP-complete, even if all the segments defining the tubes have unit length. Let V={v1,,v2n}V=\{v_{1},\ldots,v_{2n}\} and let IiI_{i} be the unit length vertical segment associated with viv_{i}. For convenience we assume that there is an edge between v2i1v_{2i-1} and v2iv_{2i} (1in1\leq i\leq n), and let TiT_{i} be the corresponding tube.

Refer to caption
Figure 2: A rectilinear planar embedding of a 3-SAT formula.

We prove NP-hardness by reduction from Rectilinear planar 3-SAT [10]. An instance of this NP-complete problem consists of a 3-SAT formula and a rectilinear embedding of the graph associated to the formula. In the embedding all variable vertices lie on a straight line, and clauses are represented as horizontal line segments with at most three vertical line segments that connect to the variables appearing in the clause. See Figure 2 for an illustration of four variables and three clauses. The reduction relies on the following gadgets for variables and clauses.

Refer to caption
Figure 3: Gadgets in the NP-hardness reduction. Black segments have unit length. (a) A blocker bb. (b) A basic variable gadget, based on eight blockers (omitting for clarity the unit segments defining each of them). (c) Variable gadgets can be connected to propagate a truth value (blue or red diagonal). Note that blockers are not shown for clarity. (d) Negation of a variable.

Blockers. An essential building block is the construction of vertical edges that cannot be crossed by any segment in a solution, see Figure 3(a). This is achieved by placing a tube connecting two disjoint vertical segments IiI_{i} and Ii+1I_{i+1} exactly above each other,222Note that the degenerate situation of two equal xx-coordinates can be avoided by using small perturbations. The same applies to the other gadgets that make use of collinearities: they can all be removed while preserving the behavior of the gadgets. forcing the segment between IiI_{i} and Ii+1I_{i+1} to be part of any path connecting the tube.

Variable gadgets. The main component for modeling variables is the basic gadget shown in Figure 3(b). Using a small set of blockers, we can limit the possible connections for a tube to only two, shown in blue and red in the figure. These two solutions will correspond to the truth values true or false of the variable or literal. In general, if we want to limit the possible connections for a tube to a constant number of options, we can enforce this using a constant number of blockers. One generic way to achieve this is to choose three vertical segments (at arbitrary xx-coordinates) spanning the tube and let these be interrupted by the chosen possible connections. In a non-degenerate situation this will leave only the chosen possible connections as options. As shown in Figure 3(c), several basic gadgets can be connected in order to propagate the value in any of four directions. The value of a variable can be negated by adding a tube with two horizontal segments as options, as shown in Figure 3(d).

Refer to caption
Figure 4: Clause gadgets. (a) The gadget consists of three tubes. The three literals {b1,b2,b3}\{b_{1},b_{2},b_{3}\} that participate in the clause cross the blue edges when their value is false. (b) Example of the only non-crossing solution when the first literal is true and the other two are false (dotted edges create crossings).

Clause gadgets. In the embedding given in Rectilinear 3-SAT, a clause is represented by a horizontal line segment with three vertical segments, which connect to the variables. A horizontal segment can be recreated by using a single tube wide enough. Vertical segments can be represented by a chain of vertically stacked tubes (see Figure 3(c)). The most interesting part of the clause is the point at which the three paths connect, in which the values of the three literals interact. In our gadget, this is achieved by using three tubes, as shown in Figure 4. The top and bottom tubes have only two possible paths connecting them (for clarity, in the figures we omit the blockers needed to force this situation). The middle tube can be connected with three different edges. The three literals that form the clause attach to it through the blue edges. More precisely, a literal will have an edge crossing with one of the blue edges of the clause if and only if its value is false. The key property of the clause gadget is that there exist non-crossing paths connecting the three tubes if and only if at least one literal is true. Note that the variable gadgets do not all connect to the clause gadgets from the bottom. However, we can easily achieve this construction by minor modifications to the rectilinear embedding and using the construction in Figure 3(c).

With this construction we obtain the desired NP-hardness reduction. The following lemma is a direct consequence of the construction.

Lemma 2.1

A satisfying truth assignment for the variables in the 3-SAT formula exists if and only if all tubes in the associated construction can be connected with straight line segments without crossings.

Proof 2.2.

First consider an input 3-SAT formula with a satisfying truth assignment. Each variable value is mapped to one of the two possible edges (red or blue) in its corresponding variable gadget. By construction, all the tubes that propagate this value can be connected without crossings as well, choosing the same edge color (or the opposite, when they need to propagate the value to a clause where the variable appears negated). Since each clause can be satisfied with the chosen truth assignment, at least one of the input values to the clause must be true. Then the key property of the clause gadget implies that there is a way to connect the three tubes forming the clause without crossings. Therefore all tubes can be connected without crossings. Conversely, if all tubes in the construction can be connected without crossings, each variable is associated with a single truth value consistently. Moreover, the tubes of each clause gadget can also be connected without crossings. Then the key property of the clause gadget implies that each clause can be satisfied, and overall that a satisfying truth assignment exists.

It remains to show that the problem is in NP.

Lemma 2.3.

Given nn tubes defined by unit vertical segments, the problem of deciding if the tubes can be connected with straight line segments is in NP.

Proof 2.4.

Note that it is very easy to check whether there is a crossing or not, given the coordinates of the segment of each tube. But we also need to show that these coordinates can be represented by a polynomial number of bits. In order to show this, we look at the problem differently.

A solution to the problem can be described as two yy-coordinates for each tube, yi,yi+1y_{i},y_{i+1}, representing the yy-coordinates of the endpoints of the segment. Then the problem can be seen as finding some constraints on the yy-coordinates yiy_{i}. First consider the constraint that the line segments must be non-crossing. It is easy to see that this can be expressed as a series of orientation tests, in which one checks if a point is to the left or right of an oriented line through two other points. An orientation test consists of checking the sign of the determinant of a 3×33\times 3 matrix, which in this case has only one row of variables (the yy-coordinates of the three points in question). Therefore this test results in a linear expression.

So checking if two line segments are non-crossing is a boolean formula on linear constraints. The constraint that an endpoint of a segment is on a vertical segment is clearly also linear.

As described above, the problem consists in finding a vector (y1,y2,,y2n)(y_{1},y_{2},\ldots,y_{2n}) satisfying a boolean formula on linear constraints. Assume that the problem has a solution (y1,y2,,y2n)(y_{1},y_{2},\ldots,y_{2n}). This solution must be in a 2n2n-dimensional cell bounded by the hyperplanes representing the linear constraints (or it is on an intersection of hyperplanes). Such a cell is bounded, due to the constraints forcing the endpoints of the segments to be on the given vertical segments. We can simply choose a solution that is on one of the corner points of the cell. Note that this solution is on an intersection of hyperplanes. Because the intersection of a collection of 2n2n hyperplanes can be represented by a polynomial number of bits, the solution of a problem instance can be as well. Finally, given the vector (y1,y2,,y2n)(y_{1},y_{2},\ldots,y_{2n}), the linear constraints can easily be checked. Thus, the problem is in NP.

Theorem 2.5.

Given nn tubes defined by unit vertical segments, deciding if the tubes can be connected with straight line segments is NP-complete.

3 Monotone paths

In this section we consider edges drawn as xx-monotone paths. A path is said to be xx-monotone if no vertical line intersects the path more than once, see Figure 5 for an illustration.

Refer to caption
Figure 5: Example using monotone paths. (a) Instance with three tubes. (b) A solution using xx-monotone paths; note that this instance has no solution if all edges must be drawn as straight line segments.
Refer to caption
Figure 6: A full crossing.

We start with some observations that hold for arbitrary paths. We say that two tubes fully cross if the vertical segments are completely disjoint from the other tube, and the intersection of the two tubes is nonempty (see Figure 6). The first basic observation is that whenever two tubes fully cross, no solution can exist. Therefore we assume from now on that no two tubes fully cross. The most interesting cases occur when two tubes intersect, without fully crossing. This necessarily happens because (at least) one of the vertical segments of a tube intersects the other tube. Figure 7 shows examples of such situations. We distinguish between single intersections, where only one tube segment intersects another tube, or double intersections, where two different segments intersect another tube (either both from the same tube, or one from each).

Refer to caption
Figure 7: Examples of tube intersections and solutions: (a) single and (b) double. Double intersections also admit solutions with the inverse vertical red/blue order.

Single intersections locally induce a vertical order between the paths in any solution. For instance, in the situations in Figure 7(a), the red tube can be considered above the blue one, because in any solution the red path will be above the blue one at the xx-coordinate equal to that of the vertical segment creating the intersection. On the other hand, no such order exists for a double intersection. Indeed, in any double intersection there are solutions with both orders of the paths in the tubes, see Figure 7(b). Based on this we define the order graph.

Order graph. The order graph of a set of tubes has a vertex for each tube and a directed edge from TiT_{i} to TjT_{j} if TiT_{i} and TjT_{j} have a single intersection where TjT_{j} is above TiT_{i}. We also add a directed edge from TiT_{i} to TjT_{j} if TiTj=T_{i}\cap T_{j}=\emptyset and TiT_{i} and TjT_{j} share an xx-coordinate where TjT_{j} is above TiT_{i}. Double intersections are not represented in the order graph. The order graph encodes enough information to decide whether a solution exists using xx-monotone paths.

Theorem 3.1.

Given a set of tubes defined by vertical segments, the tubes can be connected with xx-monotone paths if and only if the order graph is acyclic and no two tubes fully cross.

Proof 3.2.

First we prove that if the order graph is acyclic, and no two tubes fully cross, then there exists a solution. The directed edges in the order graph induce a partial order that can be extended to a total order on the tubes. Let T1,,TnT_{1},\dots,T_{n} be that order from bottom to top. Let i\ell_{i} denote the bottom side of tube TiT_{i}. We maintain the following invariant: for i=1,,ni=1,\dots,n, path pip_{i} of tube TiT_{i} consists of parts of j\ell_{j} with 1ji1\leq j\leq i and vertical segments. We can clearly draw p1p_{1} along 1\ell_{1}. Suppose now that we want to draw path pip_{i} (i>1i>1). We start pip_{i} at the highest intersection of the left vertical segment with any path pjp_{j} (j<ij<i), or at i\ell_{i} if no such path exists. We follow a restricting path pjp_{j} until the right side of TjT_{j}, after which we drop down vertically, hitting either another path pkp_{k} or i\ell_{i}. In the latter case, or if we already hit i\ell_{i} before reaching the right side of TjT_{j} while following pjp_{j}, we can follow i\ell_{i} until hitting another restricting path. We then repeat this process until we reach the right side of TiT_{i}. The resulting path pip_{i} only follows paths pjp_{j} (j<ij<i), vertical segments, and i\ell_{i}, and thus satisfies the invariant. Finally note that pip_{i} can leave TiT_{i} only if it is restricted by a path pjp_{j} intersecting the top of TiT_{i}. By the invariant, there must be some k\ell_{k} (k<ik<i) intersecting the top of TiT_{i}, violating the order.

It remains to prove the result in the opposite direction. It is clear that if two tubes fully cross, there is no solution, so we focus on the case of a directed cycle in the order graph.

First we observe that any solution with xx-monotone paths can be extended to a set of unbounded monotone curves, as follows. Take the path corresponding to any tube in the cycle and extend it towards both sides horizontally. If while doing that the extended path hits another path, follow it without crossing it until it ends, and then continue horizontally. Now, repeat that for each of the tubes in the solution. If while extending the path of a tube it hits the extended path of another tube, from then on both paths go together. See Figure 8.

Refer to caption
Figure 8: Extending monotone paths to monotone unbounded curves.

Since the initial paths were xx-monotone, the extensions are also xx-monotone, because each of them consists of a concatenation of horizontal segments and parts of xx-monotone paths. The final result is a set of xx-monotone unbounded curves that respect all the order relations between the tubes, namely, if TjT_{j} is above TiT_{i}, then the extended path of TjT_{j} is above that of TiT_{i}. Since the xx-monotone unbounded curves are totally ordered, and this order respects all order relations in the order graph, the order graph must be acyclic. Thus, if the order graph contains a directed cycle, then no solution with xx-monotone curves can exist.

Therefore, to solve the problem it is enough to compute the order graph and check the two conditions in the theorem. This can be done in O(n2)O(n^{2}) time, since the order graph can have at most quadratic size.

4 Arbitrary paths

Refer to caption
Figure 9: Examples of two cycles in the order graph, one that has a solution (a) with arbitrary paths, and one that does not (b).

If we allow edges to be drawn by arbitrary paths, then a cycle in the order graph can sometimes be realized, as shown in Figure 9(a)—the cycle here is blue \rightarrow red \rightarrow green \rightarrow blue. However, that is not always the case, as the example in Figure 9(b) shows.

Nevertheless, if we disallow double intersections, then we can still decide in polynomial time whether a solution exists. The key idea is to use a result by Kratochvíl and Ueckerdt [11] that states that if the regions (in our case, tubes) form a set of pseudo-disks, then there is always a solution. Two tubes with a single intersection may not be pseudo-disks, but we can try to convert them into pseudo-disks by cutting off parts that cannot be used in any solution. This leads to a procedure that allows us to determine in polynomial time if a solution exists.

Theorem 4.1.

Given a set of tubes defined by vertical segments such that no two tubes form a double intersection, one can determine if all the tubes can be connected without crossings using arbitrary paths in polynomial time.

Proof 4.2.

Kratochvíl and Ueckerdt [11] showed that the non-crossing connectors problem always has a solution when the regions form a collection of pseudo-disks [11, Theorem 2] (i.e., the boundaries of any two regions intersect in at most two points). In our context, the regions are the tubes. To apply their result to our problem we need two things.

First, the tubes need to be pseudo-disks. If no two tubes fully cross or create a double intersection, the only way in which they can interact is through single intersections. Two tubes that intersect in a single intersection are not always pseudo-disks, since the tube boundaries can intersect in four points. However, it is possible to make them pseudo-disks by cutting off the part of one of the tubes that sticks out of the other, as shown in Figure 10(a). We refer to this part as an ear. Initially, an ear is a triangle with one vertical edge, which is part of the vertical segment of a tube, and two other edges that are parts of the boundaries of the two tubes involved. The path order forced in every single intersection implies that in any solution, the ear will be separated from its tube by the path of the other tube, meaning that there can be no path inside the ear. Thus we can cut off the ear without affecting any solution. For instance, in Figure 10(a), the blue path can never enter the ear without crossing the red path.

Refer to caption
Figure 10: (a) Cutting off an ear (shaded gray) so that two tubes that have a single intersection become pseudo-disks; the gray region is guaranteed to be empty in any solution, if one exists. (b) The approach does not extend to double intersections because then one does not know in advance which of the two gray regions will be empty.

Cutting off an ear can introduce a full crossing between two tubes. Figure 11 shows an example where the removal of an ear that contains part of the vertical segment of another tube generates a full crossing. Since we only cut off parts of the tube that cannot be used, we can conclude in this situation that the original problem has no solution. On the other hand, cutting off an ear cannot introduce a double intersection: tubes only become smaller, and thus, a vertical segment that is disjoint from a tube will remain disjoint from that tube.

We now use the following simple approach. While there exists a pair of tubes with more than two intersections (that is, the current tubes are not pseudo-disks), we cut off the corresponding ear. This ear always exists, as we have only single intersections (although it needs not to be triangular). After this procedure ends, the set of tubes are pseudo-disks.

We need to argue that this procedure terminates after a polynomial number of steps. To that end, note that the complexity of the arrangement formed by the tubes cannot increase. Furthermore, an ear always consists of a non-empty set of faces of the arrangement of tubes. In particular, in every step there is a tube that loses at least one face of the arrangement. Since the complexity of the arrangement is O(n2)O(n^{2}), the number of steps in this procedure is O(n2)O(n^{2}) as well.

The result of the procedure is a set of truncated tubes with the same solutions as the original ones. To determine if a solution exists, it is enough to check if any two of the truncated tubes fully cross. If two truncated tubes cross, there is no solution for the original tubes either. If no two fully cross, then the truncated tubes are pseudo-disks.

Second, to apply the result of Kratochvíl and Ueckerdt [11, Theorem 2], we need a discrete set of points to be connected inside each tube. It is enough to place an endpoint on each vertical segment of the truncated tubes. We obtain a set of regions that are pseudo-disks with two endpoints in each. The aforementioned result guarantees that they have a solution, and thus the original set of tubes also does.

We note that the technique used above to cut off ears in single intersections to make them pseudo-disks does not extend to double intersections. As Figure 10(b) shows, since the order of the two paths in a double intersection is not fixed, it is not possible to know in advance which of the two ears will be empty in a solution.

Refer to caption
Figure 11: When the ear between the blue and green tubes (shaded gray) is cut off, the single intersection between green and red becomes a full crossing. This shows that the original problem has no solution.

5 Conclusions and open problems

In this work we began the study of a fundamental problem for geographic networks: deciding if a given network can be drawn without crossings. We have focused on a simple variant where regions are vertical segments, and the graph is a matching. Despite the apparent simplicity of the problem, it turned out to be very challenging, with varying problem complexities depending on the way in which edges can be drawn. There are multiple directions in which this work can be continued.

To begin with, in the restricted setting studied here, the arguably most important variant of arbitrary paths is still not fully solved: our algorithm only works in the absence of double intersections. If we allow double intersections, the problem remains open. However, we expect the problem to remain polynomial also in this case. Furthermore, we conjecture that the problem admits a Helly-type property, implying a polynomial time algorithm.

Conjecture 5.1.

There exists a universal constant CC such that, if a set of tubes defined by vertical segments does not admit a solution with arbitrary paths, then there exists a subset of at most CC tubes that also does not admit a solution.

A whole set of open questions arises when the setting is made more general. A first step would be, for example, to consider tubes defined by line segments with more than one orientation (say, using k>1k>1 different slopes). This would probably require a different approach. Then it is most interesting to understand what is the simplest type of 2-dimensional region that can be solved in polynomial time when the graph is matching, as in this work. Going in a different direction, it would also be worthwhile to consider more general families of graphs, such as paths or trees, even if it is for tubes defined by vertical segments.

Acknowledgements. We are grateful to the anonymous reviewers for their detailed and useful comments. R.I.S was partially supported by projects MTM2015-63791-R (MINECO/ FEDER) and Gen. Cat. 2017SGR1640, and by MINECO’s Ramón y Cajal program. B.S. and K.V. are supported by the Netherlands Organisation for Scientific Research (NWO) under project no. 639.023.208 and 639.021.541, respectively.

References

  • [1] M. Abellanas, A. Aiello, G. Hernández, and R. I. Silveira. Network drawing with geographical constraints on vertices. In Actas XI Encuentros de Geometría Computacional, pages 111–118, 2005.
  • [2] M. J. Alam, M. Kaufmann, S. G. Kobourov, and T. Mchedlidze. Fitting planar graphs on planar maps. J. Graph Algorithms Appl., 19:413–440, 2015.
  • [3] G. Aloupis, J. Cardinal, S. Collette, E. D. Demaine, M. L. Demaine, M. Dulieu, R. Fabila-Monroy, V. Hart, F. Hurtado, S. Langerman, M. Saumell, C. Seara, and P. Taslakian. Non-crossing matchings of points with geometric objects. Comput. Geom., 46(1):78–92, 2013.
  • [4] P. Angelini, G. Da Lozzo, M. Di Bartolomeo, G. Di Battista, S.-H. Hong, M. Patrignani, and V. Roselli. Anchored drawings of planar graphs. In C. Duncan and A. Symvonis, editors, GD 2014, volume 8871 of LNCS, pages 404–415. Springer, Heidelberg, 2014.
  • [5] T. M. Chan, H. Hoffmann, S. Kiazyk, and A. Lubiw. Minimum length embedding of planar graphs at fixed vertex locations. In S. K. Wismath and A. Wolff, editors, Graph Drawing - 21st International Symposium, GD 2013, Bordeaux, France, September 23-25, 2013, Revised Selected Papers, volume 8242 of Lecture Notes in Computer Science, pages 376–387. Springer, 2013.
  • [6] C. A. Duncan and M. T. Goodrich. Planar orthogonal and polyline drawing algorithms. In R. Tamassia, editor, Handbook on Graph Drawing and Visualization, pages 223–246. Chapman and Hall/CRC, 2013.
  • [7] Q. Feng, R. F. Cohen, and P. Eades. Planarity for clustered graphs. In P. G. Spirakis, editor, ESA 1995, volume 979 of LNCS, pages 213–226. Springer, Heidelberg, 1995.
  • [8] B. Katz, M. Krug, I. Rutter, and A. Wolff. Manhattan-geodesic embedding of planar graphs. In D. Eppstein and E. Gansner, editors, GD 2009, volume 5849 of LNCS, pages 207–218. Springer, Heidelberg, 2009.
  • [9] B. Klemz and G. Rote. Ordered level planarity, geodesic planarity and bi-monotonicity. In F. Frati and K. Ma, editors, Graph Drawing and Network Visualization - 25th International Symposium, GD 2017, Boston, MA, USA, September 25-27, 2017, Revised Selected Papers, volume 10692 of Lecture Notes in Computer Science, pages 440–453. Springer, 2017.
  • [10] D. E. Knuth and A. Raghunathan. The problem of compatible representatives. SIAM J. Discrete Math., 5(3):422–427, 1992.
  • [11] J. Kratochvíl and T. Ueckerdt. Non-crossing connectors in the plane. In T.-H. H. Chan, L. Chi Lau, and L. Trevisan, editors, TAMC 2013, volume 7876 of LNCS, pages 108–120, 2013.
  • [12] C. E. Leiserson and R. Y. Pinter. Optimal placement for river routing. SIAM Journal on Computing, 12(3):447–462, 1983.
  • [13] M. Löffler. Existence and computation of tours through imprecise points. Int. J. Comput. Geom. Appl., 21(01):1–24, 2011.
  • [14] J. F. Lynch. The equivalence of theorem proving and the interconnection problem. SIGDA Newsl., 5(3):31–36, Sept. 1975.
  • [15] T. Nishizeki and M. S. Rahman. Planar Graph Drawing, volume 12 of Lecture Notes Series on Computing. World Scientific, 2004.
  • [16] J. Pach and R. Wenger. Embedding planar graphs at fixed vertex locations. Graphs and Combinatorics, 17(4):717–728, 2001.
  • [17] M. Patrignani. Planarity testing and embedding. In R. Tamassia, editor, Handbook on Graph Drawing and Visualization, pages 1–42. Chapman and Hall/CRC, 2013.
  • [18] K. Verbeek. Non-crossing paths with fixed endpoints. Master’s thesis, Technical University of Eindhoven, 2008.
  • [19] L. Vismara. Planar straight-line drawing algorithms. In R. Tamassia, editor, Handbook on Graph Drawing and Visualization, pages 193–222. Chapman and Hall/CRC, 2013.