Questions 7.4 and 7.5 from the course text.
7.4. Depth-First
(2)
*|
/ |
/ |
(1) | (4)
| /*
| / |
| * |
| (6) |
* |
(3)----------*(5)
or
1, 2, 3, 5, 4, 6
7.5. Breadth-First
(2)
*|
/ |
/ |
(1)---------------*(4)
\ | |
\| |
|\ |
| * |
| (6) |
* *
(3) (5)
or
1, 2, 4, 6, 3, 5