https://videosashka.com/watch/TFI46QZnzrI/has-path-or-not-directed-graph-bfs-method-python