-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Make edge weight a strongly defined type #3601
Copy link
Copy link
Closed
Labels
Description
Working on #2399 found different weight types
unsignedunsigned weight; std::int32_tconst std::int32_t weight = forward_heap.GetKey(node); intconst int source_weight = query_heap.GetKey(node);
PR #2399 unifies weight types as EdgeWeight but compile-time type checking is required to check all places.
It would also good to define strongly typed EdgeDuration, TurnWeight and TurnDuration to have compile-type checks and avoid problems by mixing edge/turn weights and durations.
Reactions are currently unavailable