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
+5 -3
View File
@@ -29,11 +29,13 @@ public class Previous implements PreviousInterface {
public ArrayList<VertexInterface> getShortestPathTo(VertexInterface vertex) { public ArrayList<VertexInterface> getShortestPathTo(VertexInterface vertex) {
shortestPath.add(vertex);
VertexInterface father = getPrevious(vertex) ; VertexInterface father = getPrevious(vertex) ;
shortestPath.add(father) ;
if (((Box) getPrevious(father)).isDeparture()) return shortestPath ; if (((Box) getPrevious(father)) == null) {
else { shortestPath.add(father);
return shortestPath ;
} else {
return getShortestPathTo(father) ; return getShortestPathTo(father) ;
} }
} }