nextupprevious
Next:8.2.1 Breadth-first search of undirected graphUp:8. Undirected GraphsPrevious:8.1 Some Definitions

8.2 Depth First and Breadth First Search

See Figure 8.2 for an example. Assume the following adjacency lists. 
Vertex Adj. List
   
a (b, c, d, e)
b (a, d, e)
c (a, f, g)
d (a, b, e)
e (a, b, d)
f (c, g)
g (c, f)
Figure 8.2: Depth-first search of an undirected graph
\begin{figure}\centerline{\psfig{figure=figures/Fgdfs.ps,width=3.5in}}\end{figure}




nextupprevious
Next:8.2.1 Breadth-first search of undirected graphUp:8. Undirected GraphsPrevious:8.1 Some Definitions
eEL,CSA_Dept,IISc,Bangalore