We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ada66b7 + 5c6f168 commit bf4feb9Copy full SHA for bf4feb9
other/graph_search.py
@@ -19,7 +19,7 @@ def find_path(self, start, end, path=None):
19
return path
20
for node in self.graph.get(start, []):
21
if node not in path:
22
- newpath = self.find_path(node, end, path)
+ newpath = self.find_path(node, end, path[:])
23
if newpath:
24
return newpath
25
0 commit comments