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

Can Contraction Hierarchies handle dynamic graphs like traffic or road closure?

Precomputation is offline and static. Dynamic real-world queries multiply the precomputed distance by current-edge weights (traffic). Major closures require local re-contraction or a hybrid approach; most systems precompute once per week or on infrastructure change.

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.