Minor change to avoid adding duplicate nodes into the BFS node queue. The previous version does not check the queue for unvisited, but queued nodes.
Minor change to avoid adding duplicate nodes into the BFS node queue.
The previous version does not check the queue for unvisited, but queued nodes.

mehmetg/python_scraps