diff --git a/graphs_trees/graph_bfs/bfs_solution.ipynb b/graphs_trees/graph_bfs/bfs_solution.ipynb index 14417ff..94fb659 100644 --- a/graphs_trees/graph_bfs/bfs_solution.ipynb +++ b/graphs_trees/graph_bfs/bfs_solution.ipynb @@ -117,7 +117,7 @@ " queue = deque()\n", " queue.append(root)\n", " root.visited = True\n", - " while len(queue) > 0:\n", + " while queue:\n", " node = queue.popleft()\n", " visit_func(node.id)\n", " for adjacent_node in node.adjacent:\n",