Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. System.out.println(taxis[i].getTaxiShortestPath().isEmpty());
  2. if(taxis[i].getTaxiShortestPath().isEmpty()==true){
  3. graph.runBfsFromSourceNode(taxis[i].getTaxiLoc());
  4. System.out.println("path" );
  5. graph.PathToDestination(taxis[i].getTaxiDest());
  6. taxis[i].setTaxiShortestPath(graph.getPath());
  7. }
  8. else{
  9.  
  10. output = output + "m " + i + " " + taxis[i].getTaxiShortestPath().getFirst();
  11. taxis[i].removeFirstOfPath();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement