From ff214722a8aeb2d09bd856f6ff84db761c247bfa Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sun, 20 Jun 2021 14:46:07 +0200 Subject: [PATCH] Also check if the new path intersects for path_b --- src/dijkstragraph.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dijkstragraph.c b/src/dijkstragraph.c index bb7e412..474f6cc 100644 --- a/src/dijkstragraph.c +++ b/src/dijkstragraph.c @@ -393,6 +393,8 @@ int dijkstra_path_intersect(struct dijkstra_solver *solver, path_new->weight = dijkstra_get_weight_from_distance(path_new->source, path_new->destination, path_new->net_meta->type); + + dijkstra_path_intersect_all(solver, path_a, path_new); } // In case neither if matches that means we are on the corner where two paths intersect at their ends.