(seed = 677584)
Consider the adjacency-lists representation of a graph with 8 vertices and 9 edges:
A: F B E
B: C A F
C: B G F H D
D: C
E: A
F: A B C
G: C
H: C
Here is a graphical representation of the same graph:
(A)-------------(B)-------------(C)-------------(D)
|\ | /|\
| \ | / | \
| \ | / | \
| \ | / | \
| \ | / | \
| \ | / | \
| \ | / | \
| \ | / | \
| \ | / | \
| \ | / | \
| \ | / | \
| \ | / | \
| \ | / | \
| \ | / | \
| \|/ | \
(E) (F) (G) (H)
Run depth-first search (using the adjacency-lists representation) from vertex A. Give the sequence
in which depth-first search discovers (marks) the vertices. This is known as the preorder.
Your answer should be a sequence of 8 uppercase letters, with each letter separated
by whitespae.