Skip to content

Commit af1a915

Browse files
committed
Fixed typo
1 parent 0ad7cbe commit af1a915

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pygorithm/searching/depth_first_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def search(graph, start, path = []):
99
path = path + [start]
1010
for edge in graph[start]:
1111
if edge not in path:
12-
path = dfs(graph, edge, path)
12+
path = search(graph, edge, path)
1313
return path
1414

1515
# time complexities

0 commit comments

Comments
 (0)