pull/788/merge
Suppu 2024-12-02 18:07:28 +00:00 committed by GitHub
commit 386261b719
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ class State(Enum):
class Graph(object):
def bfs(self, source, dest):
""" Return True if there is a path from source to dest."""
if source is None:
return False
queue = deque()