Commit
+1 -1 +/-1 browse
1 | diff --git a/graph.go b/graph.go |
2 | index 213139e..0f0b68f 100644 |
3 | --- a/graph.go |
4 | +++ b/graph.go |
5 | @@ -36,7 +36,7 @@ func Load(airports AirportMap, routes []Route, weighters ...Weighter) graph.Grap |
6 | |
7 | func Find(start, end Airport, g graph.Graph) Itinerary { |
8 | shortest := path.DijkstraFrom(start, g) |
9 | - path, weight := shortest.To(end) |
10 | + path, weight := shortest.To(end.ID()) |
11 | var airports []Airport |
12 | for _, p := range path { |
13 | airports = append(airports, p.(Airport)) |