GoalScope — bfs (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
↵
<code>↵
def bfs(graph, start):↵
"""Perform BFS on a graph starting from a given node."""↵
visited = set()↵
queue = [start]↵
while queue:↵
vertex = queue.pop(0)↵
if vertex not in visited:↵
visited.add(vertex)↵
queue.extend([node for node in graph[vertex] if node not in visited])↵
return visited↵
</code>