Add path drawing interaction & animation feature

This commit is contained in:
antograb authored and Sylvain Rager (regar42) committed 2018-01-02 23:11:36 +01:00
1 parent 43feeaf93f
commit e7c2ecb353
11 files changed
+227 -33

No files matched your search

+2 -1
View File
@@ -27,10 +27,11 @@ public class Dijkstra {
if (pi.getPi(pivot) + g.getCost(pivot, vertex) < pi.getPi(vertex)) {
pi.setPi(pi.getPi(pivot) + g.getCost(pivot, vertex), vertex) ;
previous.setPrevious(pivot, vertex) ;
pivot.addCandidate(vertex);
}
}
}
int piMax = Integer.MAX_VALUE ;
for (VertexInterface vertex: vertexList) {
if (! a.contains(vertex) && pi.getPi(vertex) < piMax) {