Add UI to the project #29

Manually merged
regar42 merged 45 commits from mvc into master 2018-01-03 11:03:09 +00:00
Showing only changes of commit f3a1f51d10 - Show all commits
+6 -4
View File
@@ -28,12 +28,14 @@ public class Previous implements PreviousInterface {
}
public ArrayList<VertexInterface> getShortestPathTo(VertexInterface vertex) {
shortestPath.add(vertex);
VertexInterface father = getPrevious(vertex) ;
shortestPath.add(father) ;
if (((Box) getPrevious(father)).isDeparture()) return shortestPath ;
else {
if (((Box) getPrevious(father)) == null) {
shortestPath.add(father);
return shortestPath ;
} else {
return getShortestPathTo(father) ;
}
}