---
answer: direct
beat: system-design
source: 1 article · updated: August 20, 2026
---

What is a shortcut edge and when is it precomputed?

When a node is removed from the graph, a shortcut edge connects its two neighbours and preserves the shortest path distance. The edge is precomputed offline by iteratively contracting low-rank nodes (intersections with few connections). Highway junctions are contracted last.

Answered in

Why Google Maps Computes Shortcuts Offline

Contraction Hierarchies precomputes shortcut edges offline so routing queries skip neighbourhood streets and touch only 2,000 nodes in under 10 milliseconds.

Crashtech Editorial August 20, 2026 System Design

Read the full analysis

Other questions this article answers

More system design questions

Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the System Design beat.