Metric Planarity Testing is Hard
arXiv:2610.15682
Abstract
A key milestone in algorithmic graph theory is Hopcroft and Tarjan's 1974 linear-time algorithm for graph planarity testing. At a workshop in 2002, Linial and Rabinovich asked for either a polynomial-time algorithm or an NP-hardness proof for metric planarity testing: given a metric space , determine whether there exists an edge-weighted planar graph with that realizes the distances in , meaning that for every . This question arose in the context of research on metric embeddings and their applications in computer science since the mid-1990s. Over the past few decades, polynomial-time algorithms have been developed for several special cases. In this work, we show that metric planarity testing is NP-hard, in sharp contrast to graph planarity testing. Our reduction yields a stronger result: under the Exponential Time Hypothesis (ETH), no -time algorithm for metric planarity testing exists, where is the number of points in the metric. To complement our ETH lower bound, we give two algorithmic results: (i) an algorithm for computing a metric planar embedding in time and (ii) a -approximation algorithm in time for any fixed . The second algorithm produces a planar graph that preserves the input metric up to a factor of .
arXiv comment9 figures, 27 pages