Graph traversal: Difference between revisions

Content deleted Content added
Undid revision 880775857 by 145.94.151.65 (talk)
Line 43:
{{main|Breadth-first search}}
{{expand section|date=October 2012}}
A breadth-first search (BFS) is another technique for traversing a finite graph. BFS visits the neighborsibling vertices before visiting the child vertices, and a [[Queue (abstract data type)|queue]] is used in the search process. This algorithm is often used to find the shortest path from one vertex to another.
 
====Pseudocode====