Skip to content

Commit b649a6a

Browse files
authored
fix minor issue
1 parent 935d42f commit b649a6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graph_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def find_shortest_path(self, start, end, path=None):
3838
path = path or []
3939
path.append(start)
4040

41-
if self.start == self.end:
41+
if start == end:
4242
return path
4343
shortest = None
4444
for node in self.graph.get(start, []):

0 commit comments

Comments
 (0)