Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

minor change to dijkstra

  • Loading branch information...
commit 8f7dc1ca7fb52b8bd7141b0a261188ad15c02d6d 1 parent e50d476
@drewverlee authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 dijkstra/dijkstra.py
View
4 dijkstra/dijkstra.py
@@ -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])
Please sign in to comment.
Something went wrong with that request. Please try again.