Weighted Graph / Dijkstra

Shortest cost, not shortest distance

Edge costs are independent weights. Geometric length is the measured distance between endpoints. The route is computed at runtime.

Source A Target G 7 nodes · 10 links
Least-Cost Path
Summed edge cost
Path geometric length
Algorithm Dijkstra

Visual encoding: edge length is geometric distance; edge thickness and labels represent cost. All listed costs are nonnegative.

Edge costs and geometric lengths
Edge Cost Geometric length
Lengths are Euclidean distances between edge endpoints in scene units. Highlighted rows belong to the least-cost path.