BFS and DFS

This commit is contained in:
2025-04-15 13:36:57 +02:00
parent 8ed7e09075
commit 370adb1234
3 changed files with 140 additions and 0 deletions

2
utils.py Normal file
View File

@@ -0,0 +1,2 @@
def getNode(name, l):
return next(( i for i in l if i.name == name), -1 )