-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
33 lines (19 loc) · 975 Bytes
/
Copy pathMain.java
File metadata and controls
33 lines (19 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
public class Main {
static private Board b;
public static void main(String[] args ){
b = new Board("Netherlands.txt");
City start = b.myCities.lookup("Waddeneilanden");
City end = b.myCities.lookup("Rotterdam");
System.out.println("Ticket to ride shortest path calculator");
System.out.println("--------------------------------------------------------------"); // Adds some space
//BruteForce bf = new BruteForce(b);
// bf.shortestPath("Waddeneilanden", "Emmen");
//bf.printShortestPath();
System.out.println("--------------------------------------------------------------"); // Adds some space
Dijkstra d = new Dijkstra(b);
d.shortestPath(start, end);
System.out.println("--------------------------------------------------------------"); // Adds some space
DijkstraToll dt = new DijkstraToll(b);
dt.shortestPath(start, end);
}
}