From d5fcf036b93a7f7a14fe266f09e8db466fd5ae7b Mon Sep 17 00:00:00 2001 From: Holt59 Date: Wed, 14 Mar 2018 21:02:26 +0100 Subject: [PATCH] Fix issue with backward arc having incorrect segments. --- src/main/org/insa/graph/Node.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/org/insa/graph/Node.java b/src/main/org/insa/graph/Node.java index 966fdc8..4ba7917 100644 --- a/src/main/org/insa/graph/Node.java +++ b/src/main/org/insa/graph/Node.java @@ -45,6 +45,7 @@ public class Node implements Comparable { d2o = new ArcBackward(arc); } else { + Collections.reverse(points); d2o = new ArcForward(destination, origin, length, roadInformation, points); arc = new ArcBackward(d2o); }