Scientific Reports (Jun 2021)

A route pruning algorithm for an automated geographic location graph construction

  • Christoph Schweimer,
  • Bernhard C. Geiger,
  • Meizhu Wang,
  • Sergiy Gogolenko,
  • Imran Mahmood,
  • Alireza Jahani,
  • Diana Suleimenova,
  • Derek Groen

DOI
https://doi.org/10.1038/s41598-021-90943-8
Journal volume & issue
Vol. 11, no. 1
pp. 1 – 11

Abstract

Read online

Abstract Automated construction of location graphs is instrumental but challenging, particularly in logistics optimisation problems and agent-based movement simulations. Hence, we propose an algorithm for automated construction of location graphs, in which vertices correspond to geographic locations of interest and edges to direct travelling routes between them. Our approach involves two steps. In the first step, we use a routing service to compute distances between all pairs of L locations, resulting in a complete graph. In the second step, we prune this graph by removing edges corresponding to indirect routes, identified using the triangle inequality. The computational complexity of this second step is $$\mathscr{O}(L^3)$$ O ( L 3 ) , which enables the computation of location graphs for all towns and cities on the road network of an entire continent. To illustrate the utility of our algorithm in an application, we constructed location graphs for four regions of different size and road infrastructures and compared them to manually created ground truths. Our algorithm simultaneously achieved precision and recall values around 0.9 for a wide range of the single hyperparameter, suggesting that it is a valid approach to create large location graphs for which a manual creation is infeasible.