Permalink
Browse files

minor change to dijkstra

  • Loading branch information...
1 parent e50d476 commit 8f7dc1ca7fb52b8bd7141b0a261188ad15c02d6d @drewverlee committed Feb 14, 2014
Showing with 1 addition and 3 deletions.
  1. +1 −3 dijkstra/dijkstra.py
View
@@ -13,8 +13,6 @@
from tools import file_to_graph
-
-
def val(pair): return pair[0]
def id(pair): return pair[1]
@@ -73,7 +71,7 @@ def dijkstra(G,v, finish=None):
# G = file_to_graph(file_name)
# final_dist = dijkstra(G, int(start))
# print(final_dist[int(finish)])
- G = file_to_graph('../data/dijkstraData.txt')
+ G = file_to_graph('data/dijkstraData.txt')
print dijkstra(G, 1, finish=[7,37,59,82,99,115,133,165,188,197])

0 comments on commit 8f7dc1c

Please sign in to comment.