Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.out.println(taxis[i].getTaxiShortestPath().isEmpty());
- if(taxis[i].getTaxiShortestPath().isEmpty()==true){
- graph.runBfsFromSourceNode(taxis[i].getTaxiLoc());
- System.out.println("path" );
- graph.PathToDestination(taxis[i].getTaxiDest());
- taxis[i].setTaxiShortestPath(graph.getPath());
- }
- else{
- output = output + "m " + i + " " + taxis[i].getTaxiShortestPath().getFirst();
- taxis[i].removeFirstOfPath();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement