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

Why contract low-degree nodes first instead of high-degree ones?

Contracting a node creates shortcut edges between all pairs of its neighbours. A node with 100 neighbours creates ~5,000 shortcuts; a degree-1 node creates none. Contracting low-degree nodes first adds shortcuts gradually, reducing the overhead when high-degree junctions are processed late.

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.