A breadth-first search from keeps a queue of discovered vertices, initially ; it removes the vertex at the head and discovers each undiscovered neighbour of , setting and the parent of to , and adds it at the tail. The parent links form the BFS tree, rooted at .
书籍暂未推出简体中文版——当前显示英文版。
Computer Science · 术语表
什么是 Breadth-first search, BFS tree?
又称: breadth-first search · BFS tree