The Metro Map Layout Problem

Seok-Hee Hong, Damian Merrick, Hugo A. D. do NascimentoGD 2004

Abstract

Creating readable transit maps is a complex design task traditionally performed by hand. This paper introduces a formal approach to the "Metro Map Layout Problem," automating the generation of "octilinear" (0, 45, and 90-degree) layouts. By combining graph simplification with modified force-directed algorithms and magnetic field constraints, the proposed system produces high-quality, professional-looking maps in a fraction of the time required for manual drafting.

Introduction

Most iconic metro maps, such as the London Underground, prioritize readability and topological clarity over strict geographic accuracy. Designers manually craft these maps to ensure lines are straight and intersections are clear, typically adhering to an octilinear grid. However, this manual process is labor-intensive and scales poorly as networks grow or change.

Furthermore, the "metro map metaphor" is increasingly applied to visualize abstract information—such as website structures or conceptual relationships—where no underlying geography exists. Automating this while preserving the underlying topology of the network is a complex graph-drawing problem.

Figure 1: Examples of the metro map metaphor applied to (a) the Sydney CityRail network and (b) abstract data visualization.

Methodology

The authors propose a multi-stage pipeline to transform raw network data into a polished map. Their most advanced approach involves several key steps:

  1. Preprocessing (Graph Simplification): The algorithm identifies and removes "degree-two" vertices—stations that serve as intermediate stops on a single line. This reduces the graph to its essential skeleton of intersections and terminals, significantly accelerating subsequent computations.
  2. Modified Spring Algorithm (PrEd): A variation of the force-directed (spring) algorithm called PrEd is used. Unlike standard versions, PrEd preserves the input's topology, preventing edges from "jumping" over nodes and creating new, unintended intersections.
  3. Magnetic Spring Forces: To achieve the characteristic octilinear look, "magnetic field forces" act like a compass, pulling edges toward the nearest 0, 45, or 90-degree orientation.
  4. Vertex Reinsertion: Once the simplified skeleton is laid out, the intermediate degree-two stations are reinserted and spaced evenly along the edges.
  5. Automated Labeling: Labeling is treated as a separate optimization problem (Maximum Independent Set). A conflict graph is constructed to find the maximum number of non-overlapping labels, prioritizing 45-degree orientations for aesthetic consistency.
Figure 2: The layout process: (a) raw graph, (b) simplified graph after removing degree-two nodes, and (c) the station labeling optimization.

Results and Key Insights

The system was evaluated on real-world metro networks (Sydney, Barcelona, Tokyo, London) and abstract datasets, such as O’Reilly book relationship networks. Key findings include:

  • Efficiency: The pipeline is remarkably fast. The system processed the Sydney network (319 nodes) in just 2.3 seconds and the complex London network in 22 seconds. Preprocessing proved vital, making the layout process roughly 20 times faster than standard algorithms.
  • Topology over Geography: The results reinforce that relative position and line straightness are more critical for navigation than exact GPS coordinates.
  • Simplification Benefits: Removing degree-two nodes is not merely a performance optimization; it allows the algorithm to focus on the global "skeleton" of the network, leading to much cleaner layouts.

Conclusion and Future Work

While the current system handles networks of up to 300 nodes effectively, scaling to massive continental railway systems remains a challenge. Additionally, balancing "magnetic" grid alignment with the preservation of recognizable geographical landmarks is an area for further refinement. Future work may involve multicriteria optimization to better balance the trade-offs between angle accuracy and line straightness.

Summary updated

BibTeX
@inproceedings{hong2004metro,
  author = {Seok-Hee Hong and Damian Merrick and Hugo A. D. do Nascimento},
  title = {{The Metro Map Layout Problem}},
  booktitle = {GD},
  year = {2004},
  doi = {10.1007/978-3-540-31843-9\_50},
}
Figure