Content deleted Content added
Netzwerkerin (talk | contribs) →Graph traversal algorithms: added a nice visual of three algorithms to traverse a graph. |
Ashingeorge (talk | contribs) |
||
Line 47:
====Pseudocode====
* ''Input'': A graph ''G'' and a vertex ''v'' of ''G''.
* ''Output'': The closest vertex to ''v'' satisfying some conditions, or null if no such
1 '''procedure''' BFS(''G'', ''v''):
|