 # Crossing Patterns in Nonplanar Road Networks

We define the crossing graph of a given embedded graph (such as a road network) to be a graph with a vertex for each edge of the embedding, with two crossing graph vertices adjacent when the corresponding two edges of the embedding cross each other. In this paper, we study the sparsity properties of crossing graphs of real-world road networks. We show that, in large road networks (the Urban Road Network Dataset), the crossing graphs have connected components that are primarily trees, and that the remaining non-tree components are typically sparse (technically, that they have bounded degeneracy). We prove theoretically that when an embedded graph has a sparse crossing graph, it has other desirable properties that lead to fast algorithms for shortest paths and other algorithms important in geographic information systems. Notably, these graphs have polynomial expansion, meaning that they and all their subgraphs have small separators.

## Authors

##### This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

## 1. Introduction

Road networks are often modeled graph-theoretically, by placing a graph vertex at each intersection or terminus of roads, and connecting vertices by edges that represent each segment of road between two vertices. Thus, each vertex is naturally associated with a coordinate on the earth’s surface.

Much past work on algorithms for road networks has either assumed that these networks are planar (that is, that no two roads cross without forming an intersection at their crossing point) or has added artificial intersection points to roads that cross without intersection, to force these networks to be planar. Planar graphs have many convenient properties, including planar graph duality and planar graph separator theorems (Lipton and Tarjan, 1979; Chung, 1990) that allow natural and important problems on these networks to be solved more quickly. For instance, for planar graphs, it is known how to compute shortest paths in linear time, based on the planar separator theorem (Klein et al., 1994), in contrast to the situation for general graphs where shortest paths are slower by a logarithmic factor. Unfortunately, as Eppstein et al. (Eppstein and Goodrich, 2008) observed, the available data for real-world road networks shows that these networks are not actually planar: they include many crossings. This discovery naturally raises the question of how to model nonplanar road networks, in a way that allows efficient algorithms to be based on their properties.

In this context, one would like a model of road networks that is in some sense near-planar (after all, road networks have few points where roads cross without intersecting, although their number is not zero), that is realistic (accurately modeling real-world road networks), and that is useful (leading to efficient algorithms).

One clear property of road networks is that they are sparse: the number of road segments exceeds the number of road intersections by only a small factor, half of the average number of segments that meet at an intersection. Since the vast majority of intersections are the meeting point of three or four road segments, this means that the number of road segments should be between 1.5 and 2 times the number of intersections. Researchers in graph algorithms and graph theory have developed a sophisticated hierarchy of classifications of sparse graph families centered around the intuitive notion of sparseness. Many of these types of sparseness imply general algorithmic meta-theorems about the properties that can be computed efficiently for graphs in the given family. In particular, many of the known algorithms for planar graphs can be extended to the class of graphs of polynomial expansion, a property that was originally defined using graph minor theory but that has a more natural equivalent definition (for classes of graphs closed under taking subgraphs) in terms of the existence of sublinear-size separators (Nešetřil and Ossona de Mendez, 2012; Dvořák and Norin, 2015)

. Graphs of polynomial expansion support efficient separator-based divide-and-conquer algorithms, as well as more sophisticated pattern matching algorithms based on their graph minor properties. We would like to show that road networks, too, have small separators, and therefore that they can support all of these algorithms.

In this paper, we provide a mathematical model of non-planar road networks in terms of the sparseness of their crossing graphs, graphs representing pairs of road segments that cross in the network. We analyze the Urban Road Network Data set and show that, indeed, it is a good fit for the model. Additionally, we prove that networks within this model have polynomial expansion, from which it follows that the linear-time planar shortest path algorithm of Klein et al (Klein et al., 1994) can be adapted to work on these networks, despite their non-planarities.

## 2. Past work

The past work by Eppstein et al. (Eppstein and Goodrich, 2008; Eppstein et al., 2009b, a) has attempted to model nonplanarities in planar road networks in two different ways. In (Eppstein and Goodrich, 2008) the authors posited that road networks are subgraphs of the intersection graphs of systems of disks (the disks centered at each intersection of roads with radius equal to half the length of the longest segment of roads meeting at that intersection) and that, with a small number of exceptional high-radius disks, these disks have low ply (at most a constant number of non-exceptional disks cover any point of the Earth’s surface). They performed an empirical analysis of road network data showing that this model fits actual road networks reasonably well, and they used the assumption to develop efficient road network algorithms. Unfortunately, the class of networks defined by this model does not fit well into the theory of sparse networks, because of its handling of the exceptional disks. Because these disks could be arbitrary, they could in principle heavily overlap each other, producing dense subgraphs that prevent the graphs defined in this way from having polynomial expansion or other good sparseness properties. This misbehavior seems unlikely to happen in actual road networks, but this mismatch between theory (where these graphs can have dense subgraphs) and practice (where dense subgraphs are unlikely) indicates that it should be possible to replace their model of road networks by another model that more accurately matches the sparsity properties of real-world road networks.

Later work of the same authors (Eppstein et al., 2009b) attempted to justify the low number of crossings in road networks by showing that randomly chosen lines (modeling, for instance, a highway cutting across an older city grid) typically have a sublinear number of crossings with other roads. Another paper (Eppstein et al., 2009a) used this observation of few crossings per line as the basis for a very weak assumption about road networks, that the total number of crossings is smaller than the number of intersections by a sufficiently large non-constant factor. This assumption allows some algorithms to be performed efficiently; notably, the crossings themselves can all be found in linear time. However, it is not strong enough to imply the existence of small graph separators for arbitrary subgraphs of road networks, a property that is required by fast separator-based graph algorithms. Additionally, this paper’s assumptions about the sparsity of crossings are on dubious ground from an empirical point of view: what reason is there to believe that the ratio of intersections to crossings in large street networks is non-constant rather than a large constant?

### 2.2. Nearly-planar graphs

The graph theory literature includes many natural generalizations of planar graphs that we may choose from. Among these, the -apex graphs have been defined as the graphs that can be made planar by the removal of vertices (Kawarabayashi, 2009); however, in road networks, the number of vertices that would need to be removed would typically be proportional to the number of crossings, a large enough number that it is not reasonable to treat it as a constant. Similarly, the -genus graphs are the graphs that can be embedded without crossings into a surface of genus at most  (Demaine et al., 2005). A road network can be embedded without crossings on a surface with a handle for each overpass or tunnel, and this surface would have genus proportional to the number of overpasses and tunnels, but again this number would be too large to treat as a constant. These two graph families form minor-free graph families: families of graphs that, like the planar graphs, have some forbidden graphs that cannot be formed from contractions or deletions of graphs in their family. However, there is no reason to expect any particular forbidden minors in road networks. Figure 1. A 1-planar graph: each edge is crossed at most once. Although more general than planar graphs, this class of graphs does not adequately model real-world road networks.

Among the many generalizations of planar graphs that have been studied in the graph theory literature, another one seems more promising as a model for road networks: the -planar graphs (Ringel, 1965) or more generally -planar graphs (Pach and Tóth, 1997; Grigoriev and Bodlaender, 2007; Dujmović et al., 2015). A -planar graph is a graph in which every road segment has at most one crossing (Figure 1). More generally a -planar graph is a graph in which every road segment has at most crossings. Many of the sparsity properties of these graphs follow directly from planarization: if one replaces each crossing with a vertex, one obtains a planar graph in which the number of vertices has been blown up only by a factor of . Based on this principle, it is known that these form sparse families of graphs, and in particular they obey a separator theorem like that for planar graphs but with a dependence on as well as on the number of vertices in the size of the separator (Dujmović et al., 2015). Although -planar graphs are NP-hard to recognize from their graph structure alone (Grigoriev and Bodlaender, 2007; Bannister et al., 2013), that is not problematic for their application to road networks, because in this case an embedding with few crossings would already be known: the actual embedding of the roads on the surface of the earth.

Therefore, it is tempting to model road networks as 1-planar or -planar graphs. However, the restriction on the number of crossings per edge may be too restrictive to model real-world road network graphs. As we show, the assumption that road networks are -planar does not fit the actual data, because real-world road network data includes road segments that have many crossings. In particular, a long segment of highway may have many crossings between interchanges. However, despite the poor fit of this model to the data, we may take inspiration from -planar graphs in finding a more general class of graphs with few crossings per edge in some more general sense, that still maintains the other desirable properties of this graph class and that allows the algorithms from the theory of -planar graphs to be applied to road networks.

## 3. Overview of new results

### 3.1. The crossing graph

The main new idea of this paper is to study crossings in road networks by introducing a new auxiliary graph, the crossing graph of the road network.

###### Definition 3.1 ().

We define the crossing graph of an embedded graph to be an undirected graph, different from itself. Each edge of becomes a vertex in the crossing graph. When two edges of cross each other. we connect the two corresponding vertices of the crossing graph (the ones representing the two segments) by an edge representing the crossing.

This concept is illustrated in Figure 2. In particular, for a road network, each vertex of the crossing graph represents a segment of road, and each edge of the crossing graph represents two road segments that cross without meeting at an intersection. Figure 2. A drawing of a graph with crossings (top) and its crossing graph (bottom). The eight isolated vertices of the crossing graph correspond to the eight uncrossed edges in the upper graph.

This structure allows many natural properties of the underlying road network can be read off directly from the crossing graph. For instance, a segment of road is uncrossed if it corresponds to an isolated vertex (one without any incident edges) in the crossing graph. A road network is crossing-free (planar) if and only if all its segments are uncrossed, if and only if the vertices of the crossing graph are all isolated, if and only if the crossing graph itself is an independent set.

For a more complex example, a road network can be modeled as a -planar graph (each edge has at most one crossing) if and only if the crossing graph has maximum degree one; that is, if its crossing graph is a matching. Similarly, the road network is -planar if its crossing graph has maximum degree .

Our hypothesis is that the crossing graph is a sparse graph (although possibly not one with constant maximum degree) and that its structure can be used to investigate the graph-theoretic structure of the road network itself. We study this question both empirically (by computing and examining the structure of crossing graphs for actual large-scale road networks) and theoretically (by proving that certain types of sparsity in the crossing graph imply the existence of small separators and efficient algorithms for the underlying road networks).

### 3.2. Empirical experiments

We investigate empirically the graph structure of the crossing graph, by constructing this graph for the 80 of the most populated urban areas in the world given by the Urban Road Network Dataset (Karduni et al., 2016).

Our investigations show that the degree of the crossing graph is small, but not necessarily small enough to consider to be a constant: we found vertices of degree up to 166 (road segments with up to 166 other segments crossing them, none of the crossings forming an intersection). However, we found that the crossing graphs tend to have much smaller degeneracy, a number such that every graph in a given family of graphs (closed under taking subgraphs) has at least one vertex of degree at most . For instance, trees are exactly the connected graphs of degeneracy one, and our work found that many of the connected components of the crossing graph are trees. More generally, the maximum degeneracy that we found in the crossing graph of any road network was .

### 3.3. Theory of networks with sparse crossing graphs

Based on our empirical investigations, we undertook a theoretical study of the networks whose crossing graphs have bounded degeneracy. We prove theoretical results showing that these networks are closed under subgraphs and that (like the -planar graphs) they always have small separators. Therefore, they form a new family of graphs of polynomial expansion.

## 4. Preliminaries Figure 3. The Robert C. Levy tunnel in San Francisco, in which Broadway (orange) passes under seven other streets (L–R: Hyde, Cyrus Pl., Leavenworth, Jones, Taylor, Himmelmann Pl., and Mason) without intersecting them. CC-BY-SA image from OpenStreetMap.

Before detailing our experimental and theoretical results, we provide some necessary definitions.

### 4.1. Sparse graph properties

All graphs in this paper finite. Although road networks are typically directed (by the direction of traffic on one-way streets and divided highways), the direction of the edges does not matter for the crossing pattern and separator properties considered here. Therefore, we treat these graphs as undirected.

###### Definition 4.1 ().

The degree of a vertex in a graph is the number of edges touching that vertex. The minimum degree and maximum degree of a graph are the minimum and maximum, respectively, of the degrees of the vertices in . A family of graphs has bounded degree if all graphs in have maximum degree ; that is, if there is an upper bound on the maximum degree that may depend on itself but that does not depend on the choice of a graph within .

###### Definition 4.2 ().

The degeneracy of a graph is the maximum, over subgraphs of , of the minimum degree of the subgraph.

A concept equivalent to degeneracy (but differing from it by one) was originally called the coloring number by Erdős and Hajnal (Erdős and Hajnal, 1966). For instance, the graphs of degeneracy one are exactly the forests. A graph has degeneracy at most if and only if its vertices can be ordered in such a way that every vertex has at most later neighbors. For, given such an ordering, every subgraph of has a vertex of degree at most , namely the first vertex of the subgraph to appear in the ordering. Given a graph of degeneracy , an ordering with this property can be found by greedily removing the minimum degree vertex from each remaining subgraph. This greedy removal process can be performed in linear time and allows the degeneracy to be computed in linear time (Matula and Beck, 1983).

###### Definition 4.3 ().

As with degree, we define a family of graphs to have bounded degeneracy if all graphs in have degeneracy .

That is, family has bounded degeneracy if there is an upper bound on the degeneracy of the graphs in that may depend on itself but that does not depend on the choice of a graph within .

###### Definition 4.4 ().

The hop count from a vertex to vertex in a graph is the minimum number of edges between them. The radius of a graph or subgraph is the smallest number such that there exists a vertex within hop count of of all other vertices. An -shallow minor of a graph is a graph obtained from by possibly deleting some edges and/or vertices of , and then contracting some radius- subgraphs of the remaining graph into supervertices. A family of graphs has bounded expansion if, for all choices of the parameter , the -shallow minors of the graphs in have bounded edge/vertex ratio. More strongly, family has polynomial expansion if this edge/vertex ratio is bounded by a polynomial in .

In particular, for the shallow minors are just the subgraphs, so a family of graphs with bounded expansion or polynomial expansion must have subgraphs with bounded edge/vertex ratio. This implies that they necessarily also have bounded degeneracy. The graphs of polynomial expansion include the -apex graphs, -genus graphs, and -planar graphs (Nešetřil and Ossona de Mendez, 2012), described in our earlier discussion of near-planar families of graphs (Section 2.2).

Graph families of polynomial expansion can also be characterized in terms of separators, small sets of vertices that partition the graph and form the basis of many divide-and-conquer graph algorithms.

###### Definition 4.5 ().

For an -vertex graph and a constant we define a -separator to be a subset of vertices of such that every connected component of (the subgraph formed by deleting from ) has at most vertices. We say that a family of graphs has sublinear separators if there exist constants , , and , with and , such that every -vertex graph in has a -separator of size (number of vertices) at most .

For instance, the famous planar separator theorem states that planar graphs have -separators of size , so we can take , , and  (Lipton and Tarjan, 1979). A separator hierarchy is formed by taking separators recursively, until all remaining components have size ; for planar graphs it can be constructed in linear time (Goodrich, 1995), and enables linear-time computation of shortest paths (Klein et al., 1994), among other problems.

Then, for a family of graphs that is closed under taking subgraphs (every subgraph of a graph in is also in ), has polynomial expansion if and only if has sublinear separators (Dvořák and Norin, 2015). The graphs of polynomial expansion have other important algorithmic properties, not directly deriving from their separators; for instance, for every fixed pattern graph it is possible to test whether is a subgraph of a graph in a family of bounded expansion (the subgraph isomorphism problem) in linear time. More generally, one can test any property that can be formulated in the first-order logic of graphs, for members of a family of graphs of bounded expansion, in linear time (Nešetřil and Ossona de Mendez, 2012).

### 4.2. Classification of nonplanarities

We distinguish between two kinds of nonplanarity in a road network.

###### Definition 4.6 ().

An embedding of a graph is a mapping from its vertices to points and its edges to curves, such that the vertices at the ends of each edge are mapped to the points at the ends of the corresponding curve. A crossing is a point where two edge curves intersect that is not a common endpoint of both curves. A removable crossing is a crossing between two edges in an embedding of a graph that can be removed (without introducing other crossings) by making only local reroutings in the embedding.

Such a crossing may occur, for instance, when an actual segment of road follows a curved path, passing between segments of other roads without crossing them, but the network segment representing it follows a different straight path that crosses nearby road segments. In such a case, re-routing the segment to follow the actual path of the road will cause these crossings to go away.

###### Definition 4.7 ().

An essential crossing is a crossing between two edges in an embedding of a graph that represent disjoint (non-intersecting) road segments and that cannot be removed by local changes.

Such a crossing may be caused, for instance, when one road follows a tunnel that crosses under several other roads (Figure 3), or by the multiple crossing segments of a highway interchange (Figure 4). Figure 4. High Five Interchange in Dallas, Texas. CC-BY image File:High Five.jpg by fatguyinalittlecoat from Wikimedia commons.

It is possible to remove the essential crossings of a road network by replacing each crossing by an artificial intersection point, one that exists in the graph but not in the actual road network that it represents. We call a planar network constructed in this way the planarization of the road network. Indeed, the TIGER data set, commonly used for experiments on road networks, has been planarized in this way. If the edges in this data set are drawn as straight line segments, instead of following the curves of the actual roads that the edges represent, some crossings may arise from the straightening, but the underlying graph of this data set is planar. For this reason, our experiments use a different data set, the Urban Road Network Dataset, that has not already been planarized (Karduni et al., 2016).

However, planarized networks cannot be used to obtain correct results for many road network computations. For instance, using the planarization of a road network in a shortest path routing algorithm would potentially create routes that turn from one road to another at the artificial intersections added in planarization, which do not form usable routes in the real-world network. For this reason, it is problematic to use algorithms designed specifically to work in planar networks, such as the known linear-time planar graph shortest path algorithms (Klein et al., 1994), on road network data. Instead, we must show that despite their non-planarities, road networks have the underlying properties necessary to support generalized versions of these efficient algorithms.

## 5. Experiments

In this section, we examine the sparsity of crossing graphs experimentally, on real-world road networks. We compute and analyze the crossing graphs for the of the most populated urban areas in the world. Our analysis uses the Urban Road Network Dataset (Karduni et al., 2016).

The Urban Road Network Dataset includes graphs with self-loops and parallel edges. We removed self-loops and parallel edges before processing the data. The data contains both essential and removable crossings.

To find the crossings in the Urban Road Network Dataset, we used a plane sweep algorithm for line segment intersection detection (Boissonnat and Preparata, 2000), as implemented in the CGAL computational geometry library (Fabri and Pion, 2009). Although theoretically-faster algorithms are known for the type of data considered here, in which the segments form a connected geometric graph with few crossings (Eppstein et al., 2009a), CGAL’s plane sweep is practical and usable, and the slight superlinearity of its time bound is not problematic for the problem sizes we tested.

Because a perfect identification of essential crossings would require the solution of the NP-hard problem of minimizing the number of crossings in graph embeddings (Garey and Johnson, 1983)

, our experiments determined whether a crossing is essential or removable heuristically, by using the fact that the data associated with each road segment in the Urban Road Network Dataset indicates whether it is a bridge or tunnel. Our heuristic is that when a crossing occurs between two road segments neither of which is a bridge or a tunnel, then it is removable. However, the Urban Road Network Dataset only includes this bridge and tunnel labeling for a subset of the cities that it covers. For this reason, we restricted our experiments to this subset.

We used the NetworkX Python package (Hagberg et al., 2008) to study the structure of the crossing graphs we constructed.

### 5.1. Hypothesis

Based on our intuitions concerning bridges and tunnels in real-world road networks, we expected the crossing graphs to include some vertices of moderate degree, but otherwise to be very sparse. For instance, we considered it to be possible that all of the connected components of the crossing graph would be trees.

### 5.2. Results

The results of our experiments can be seen in Table 1 and 2. We have given some of the key properties of the crossing graphs of road networks for out of cities in the table. The table columns labeled “Roads” and “Crossings” give the total number of nodes and edges, respectively, in each crossing graph; that is, the numbers of road segments and crossings in the original road network. The column giving the number of uncrossed roads lists the number of nodes in the crossing graph which have no incident edges; that is, the number of uncrossed road segments. These isolated nodes constitute the vast majority of crossing graph nodes. Table 1 captures both essential and removable crossings whereas Table 2 captures only essential crossings.

The columns labeled “Degeneracy” and “Degree” give the degeneracy and maximum degree, respectively, of the crossing graph, as defined in Section 4.1. The remaining columns detail the total number of nontrivial connected components, the number of components that are trees, and the number of components that are not trees, respectively, in the crossing graph.

### 5.3. Analysis

The table show that indeed these graphs are sparse. More specifically, our hypothesis that the degeneracy would be significantly smaller than the maximum degree held up in the experiments.

Although it is not true that (as we hypothesized) all components of the crossing graphs are trees, most of them are. The remaining non-tree components all have low degeneracy (at most ).

## 6. Theoretical Analysis of Graphs with Sparse Crossings

Both our experimental results, and our consideration of nonplanar tunnels and interchanges forming essential crossings in (non-planarized) real road networks, motivate the following question. Suppose that, as the experiments appear to show, road networks have sparse crossing graphs. More precisely, suppose that their crossing graphs have bounded degeneracy, but not necessarily bounded degree. What does this imply about the graph-theoretic properties of road networks? Do they have bounded degeneracy? Polynomial expansion? Here we give positive answers to both of these questions.

First, let us formalize the notion of a graph with a sparse crossing graph.

###### Definition 6.1 ().

We define a nice embedding to be a mapping of the vertices of the graph to points in the plane, and the edges to curves, such that the following conditions are all met:

• Each edge is mapped to a Jordan arc (a non-self-intersecting curve) whose endpoints are the images of the endpoints of the edge.

• If an edge and a vertex are disjoint in the graph, their images in the plane are disjoint.

• If two edges are mapped to curves that intersect, then that intersection consists of a single point, and is either a shared endpoint of both edges or a point where their two curves cross.

• No three edges have curves that all cross at the same point.

Let denote the family of embedded graphs with nice embeddings, such that the crossing graphs of these embeddings have degeneracy at most .

###### Definition 6.2 ().

We say that a graph is -crossing-degenerate if it belongs to .

In order to apply the equivalence between separator theorems and polynomial expansion of Dvořák and Norin (Dvořák and Norin, 2015), we need to verify that the class of graphs we care about is closed under subgraphs.

###### Lemma 6.3 ().

Every subgraph of a graph in also belongs to .

###### Proof.

Let be in and let be a subgraph of . Embed by deleting the edges and vertices of from the embedding of . Then the crossing graph of the resulting embedding of is an induced subgraph of the crossing graph of the embedding of . Since taking induced subgraphs cannot increase the degeneracy, the degeneracy of the crossing graph of is at most . Therefore, belongs to . ∎

Next, we examine the number of crossings that a graph in this family can have. As we show below, a linear bound on the crossing number follows directly from the assumption of low crossing graph degeneracy.

###### Lemma 6.4 ().

For the graphs in , a graph with edges has at most crossings.

###### Proof.

We can reduce any graph in to one with no edges (and no crossings) by repeatedly removing an edge that is crossed by at most other edges, using the assumption that the crossing graph is -degenerate and therefore that there exists an edge that is crossed at most times. This process eliminates at most crossings per step and takes steps, so there are at most crossings in the given graph. ∎

In contrast, graphs with many edges are known to have many crossings per edge. We use the following well-known crossing number inequality of Ajtai, Chvátal, Newborn, Szemerédi, and Leighton (Ajtai et al., 1982; Leighton, 1983; Pach et al., 2006):

###### Lemma 6.5 ().

Let be an embedded graph with vertices and edges, with . Then has crossings.

This allows us to show that the -crossing-degenerate graphs are sparse.

###### Lemma 6.6 ().

Every -vertex embedded graph in has edges.

###### Proof.

Let the number of edges in be , for some parameter . Then by Lemma 6.5 the number of crossings is and the number of crossings per edge is . However, by Lemma 6.4 the number of crossings per edge is also at most . For these two things to both be true, it must be the case that , so the number of edges in is . ∎

###### Definition 6.7 ().

Given a nicely embedded graph , we define the planarization to be the planar graph that has a vertex for each vertex or crossing point of , and an edge for each maximal segment of an edge curve of that does not contain a crossing point.

It follows from our previous lemmas that -crossing-degenerate graphs have small planarizations.

###### Lemma 6.8 ().

For the graphs in , every -vertex graph has a planarization with vertices and edges.

###### Proof.

This follows immediately from the already-proven facts that itself has edges (Lemma 6.6) and an average of at most crossings per edge (Lemma 6.4). ∎

Using these lemmas, we can prove our main result, that these graphs have sublinear separators.

###### Theorem 6.9 ().

The graphs in have sublinear separators and polynomial expansion. A sublinear separator hierarchy for these graphs can be constructed from their planarizations in linear time.

###### Proof.

To prove the existence of sublinear separators, we apply the planar separator theorem (Lipton and Tarjan, 1979) to the planarization of a graph in . By Lemma 6.8 is larger than by at most a factor depending only on , so (treating as a constant for the purposes of -notation) has separators of size . One application of the separator theorem may produce components of that are larger than the number of vertices in , but recursively applying the separator theorem a bounded number of times will produce components that are smaller than by a constant factor. The resulting separators have vertices in , corresponding to crossings in ; they can be transformed into separators in itself by replacing each crossing vertex in the separator by the set of four endpoints of the corresponding crossing edges in . This replacement only increases the separator size by a constant factor.

Since this method uses only planarization and planar separators, we may apply the linear time method for constructing planar separator hierarchies to  (Goodrich, 1995), to get a separator hierarchy to as well.

The fact that these graphs have polynomial expansion follows from the existence of sublinear separators, and from the fact that is closed under subgraphs (Lemma 6.3). ∎

By applying the method of (Klein et al., 1994), we obtain:

###### Corollary 6.10 ().

If we are given the planarization of a graph in , we can compute shortest paths in itself in linear time.

In conjunction with known fast algorithms for finding planarizations (Eppstein et al., 2009a), this leads to a linear-time algorithm for shortest paths whenever the number of crossings is sufficiently smaller than the overall number of road segments (as it was in our experiments).

## 7. Conclusions

We have performed a computational study of the removable crossings in large-scale planarized road network data. Our study shows that these crossings form a crossing graph that has high degree vertices (up to degree 166), but that most connected components of the crossing graph are trees and that the few remaining components have maximum degeneracy six.

Based on our study, we developed a model of nearly-planar graph, the -crossing-degenerate graphs, consisting of the graphs that can be embedded with -degenerate crossing graphs. We showed that this family of graphs is closed under the operation of taking subgraphs. In addition, for constant values of , these graphs have a linear number of crossings, a linear number of edges, and separators of size proportional to the square root of the number of vertices. In addition, a separator hierarchy for these graphs can be constructed in linear time, and applied in separator-based divide and conquer algorithms for shortest paths and other computational problems on road networks.

### Acknowledgments

This work was supported by NSF grants CCF-1618301 and CCF-1616248.

## References

• (1)
• Ajtai et al. (1982) Miklós Ajtai, Václav Chvátal, M. Newborn, and Endre Szemerédi. 1982. Crossing-free subgraphs. In Theory and Practice of Combinatorics. North-Holland Mathematics Studies, Vol. 60. North-Holland, 9–12.
• Bannister et al. (2013) Michael J. Bannister, Sergio Cabello, and David Eppstein. 2013. Parameterized complexity of 1-planarity. In 13th Int. Symp. Algorithms and Data Structures (Lect. Notes in Comput. Sci.), Vol. 8037. Springer, 97–108.
• Boissonnat and Preparata (2000) Jean-Daniel Boissonnat and Franco P. Preparata. 2000. Robust plane sweep for intersecting segments. SIAM J. Comput. 29, 5 (2000), 1401–1421.
• Chung (1990) Fan R. K. Chung. 1990. Separator theorems and their applications. In Paths, Flows, and VLSI-Layout, Bernhard Korte, László Lovász, Hans Jürgen Prömel, and Alexander Schrijver (Eds.). Algorithms and Combinatorics, Vol. 9. Springer-Verlag, 17–34.
• Demaine et al. (2005) Erik D. Demaine, Fedor V. Fomin, Mohammadtaghi Hajiaghayi, and Dimitrios M. Thilikos. 2005. Subexponential parameterized algorithms on bounded-genus graphs and -minor-free graphs. J. ACM 52, 6 (November 2005), 866–893.
• Dujmović et al. (2015) Vida Dujmović, David Eppstein, and David R. Wood. 2015. Genus, treewidth, and local crossing number. In Proc. 23rd Int. Symp. Graph Drawing and Network Visualization. Lect. Notes in Comput. Sci., Vol. 9411. Springer, 87–98.
• Dvořák and Norin (2015) Zdeněk Dvořák and Sergey Norin. 2015. Strongly sublinear separators and polynomial expansion. Electronic preprint arxiv:1504.04821. (2015).
• Eppstein and Goodrich (2008) David Eppstein and Michael T. Goodrich. 2008. Studying (non-planar) road networks through an algorithmic lens. Proc. 16th ACM SIGSPATIAL Int. Conf. Advances in Geographic Information Systems (ACM GIS 2008) (2008). Article 16.
• Eppstein et al. (2009a) David Eppstein, Michael T. Goodrich, and Darren Strash. 2009a. Linear-time algorithms for geometric graphs with sublinearly many crossings. In Proc. 20th ACM-SIAM Symposium on Discrete Algorithms. Society for Industrial and Applied Mathematics, 150–159.
• Eppstein et al. (2009b) David Eppstein, Michael T. Goodrich, and Lowell Trott. 2009b. Going off-road: transversal complexity in road networks. In Proc. 17th ACM SIGSPATIAL Int. Conf. Advances in Geographic Information Systems, Seattle, 2009. 23–32.
• Erdős and Hajnal (1966) Paul Erdős and András Hajnal. 1966. On chromatic number of graphs and set-systems. Acta Math. Hung. 17, 1–2 (1966), 61–99.
• Fabri and Pion (2009) Andreas Fabri and Sylvain Pion. 2009. CGAL: The Computational Geometry Algorithms Library. In Proc. 17th ACM SIGSPATIAL Int. Conf. on Advances in Geographic Information Systems. 538–539.
• Garey and Johnson (1983) M. R. Garey and D. S. Johnson. 1983. Crossing number is NP-complete. SIAM Journal on Algebraic Discrete Methods 4, 3 (1983), 312–316.
• Goodrich (1995) Michael T. Goodrich. 1995. Planar separators and parallel polygon triangulation. J. Comput. System Sci. 51, 3 (1995), 374–389.
• Grigoriev and Bodlaender (2007) Alexander Grigoriev and Hans L. Bodlaender. 2007. Algorithms for graphs embeddable with few crossings per edge. Algorithmica 49, 1 (2007), 1–11.
• Hagberg et al. (2008) Aric Hagberg, Pieter Swart, and Daniel Schult. 2008. Exploring network structure, dynamics, and function using NetworkX. In Proc. 7th Python in Science Conf. 11–15.
• Karduni et al. (2016) Alireza Karduni, Amirhassan Kermanshah, and Sybil Derrible. 2016. A protocol to convert spatial polyline data to network formats and applications to world urban road networks. Scientific data 3 (2016).
• Kawarabayashi (2009) Ken-ichi Kawarabayashi. 2009. Planarity allowing few error vertices in linear time. In Proc. 50th IEEE Symp. on Foundations of Computer Science. 639–648.
• Klein et al. (1994) Philip Klein, Satish Rao, Monika Rauch, and Sairam Subramanian. 1994. Faster shortest-path algorithms for planar graphs. In

Proc. 26th ACM Symposium on Theory of Computing

. 27–37.
• Leighton (1983) F. Thomson Leighton. 1983. Complexity Issues in VLSI. MIT Press, Cambridge, MA.
• Lipton and Tarjan (1979) Richard J. Lipton and Robert E. Tarjan. 1979. A separator theorem for planar graphs. SIAM J. Appl. Math. 36, 2 (1979), 177–189.
• Matula and Beck (1983) D. W. Matula and L. L. Beck. 1983. Smallest-last ordering and clustering and graph coloring algorithms. J. ACM 30, 3 (1983), 417–427.
• Nešetřil and Ossona de Mendez (2012) Jaroslav Nešetřil and Patrice Ossona de Mendez. 2012. Sparsity: Graphs, Structures, and Algorithms. Algorithms and Combinatorics, Vol. 28. Springer.
• Pach et al. (2006) János Pach, Radoš Radoičić, Gábor Tardos, and Géza Tóth. 2006. Improving the crossing lemma by finding more crossings in sparse graphs. Discrete Comput. Geom. 36, 4 (2006), 527–552.
• Pach and Tóth (1997) János Pach and Géza Tóth. 1997. Graphs drawn with few crossings per edge. Combinatorica 17, 3 (1997), 427–439.
• Ringel (1965) Gerhard Ringel. 1965. Ein Sechsfarbenproblem auf der Kugel. Abh. Math. Sem. Univ. Hamburg 29 (1965), 107–117.