Add path drawing interaction & animation feature
This commit is contained in:
1 parent
43feeaf93f
commit
e7c2ecb353
11 files changed
+227
-33
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user