There was an error while loading. Please reload this page.
1 parent 0ad7cbe commit af1a915Copy full SHA for af1a915
1 file changed
pygorithm/searching/depth_first_search.py
@@ -9,7 +9,7 @@ def search(graph, start, path = []):
9
path = path + [start]
10
for edge in graph[start]:
11
if edge not in path:
12
- path = dfs(graph, edge, path)
+ path = search(graph, edge, path)
13
return path
14
15
# time complexities
0 commit comments