Graph traversal: Difference between revisions

Content deleted Content added
Graph traversal algorithms: added a nice visual of three algorithms to traverse a graph.
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 a vertex exists.
 
1 '''procedure''' BFS(''G'', ''v''):