You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
alternative route has detour for turn_costs=true #2101
Ahhh, right. We need to concatenate "edge-based paths" properly.
Suppose we have a non-shortest candidate path s----u-v-w----t. Now we want a concatenation of two shortest paths via v. In node-based search, we take concat(s->v, v->t). In edge-based, we were taking concat(s->u-v, v-w->t). But that can be an ugly path (see above), because maybe from v-w we need to get back via u-v again.
Instead, we want concat(s->u-v, u-v->t). Concatenating "by edge", of course. (Removing the duplicate u-v edge.)
Activity
[-]alternative route detour if turn_costs=true[/-][+]alternative route has detour for turn_costs=true[/+]michaz commentedon Aug 12, 2020
Ahhh, right. We need to concatenate "edge-based paths" properly.
Suppose we have a non-shortest candidate path s----u-v-w----t. Now we want a concatenation of two shortest paths via v. In node-based search, we take concat(s->v, v->t). In edge-based, we were taking concat(s->u-v, v-w->t). But that can be an ugly path (see above), because maybe from v-w we need to get back via u-v again.
Instead, we want concat(s->u-v, u-v->t). Concatenating "by edge", of course. (Removing the duplicate u-v edge.)