23.11.2014 Views

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 13.7: Example of breadth-first search traversal,<br />

where the edges <strong>in</strong>cident on a vertex are explored by<br />

the alphabetical order of the adjacent vertices. The<br />

discovery edges are shown with solid l<strong>in</strong>es <strong>and</strong> the<br />

cross edges are shown with dashed l<strong>in</strong>es: (a) graph<br />

before the traversal; (b) discovery of level 1; (c)<br />

discovery of level 2; (d) discovery of level 3; (e)<br />

discovery of level 4; (f) discovery of level 5.<br />

824

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!