Skip to content

Commit 93a9d3c

Browse files
committed
Fixed issue in graph
1 parent 7dd9487 commit 93a9d3c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

2021/graph.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,7 @@ def dijkstra(self, start, end=None):
387387

388388
# Adding for future examination
389389
if type(neighbor) == complex:
390-
heapq.heappush(
391-
frontier, (current_distance + weight, SuperComplex(neighbor))
392-
)
390+
heapq.heappush(frontier, (current_distance + weight, neighbor))
393391
else:
394392
heapq.heappush(frontier, (current_distance + weight, neighbor))
395393

0 commit comments

Comments
 (0)