Skip to content
Snippets Groups Projects
Commit c2713483 authored by Anders Austlid's avatar Anders Austlid
Browse files

stuff

parent a64954d1
Branches
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<option name="BUILD_PROCESS_HEAP_SIZE" value="2048" />
</component>
</project>
\ No newline at end of file
......@@ -6,10 +6,11 @@ public class Main {
try {
Graph g = new Graph("noder.txt");
g.loadEdges("kanter.txt");
g.loadNodes("nodes.txt");
Edge lastEdge= g.getShortestPath(4247796,232073);
int sum = 0;
while (lastEdge!=null) {
System.out.println(lastEdge.getDestination());
sum += lastEdge.drivingTime;
lastEdge = lastEdge.previousEdge;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment