Below is an
ExampleGraphTest class that tests
the
ExampleGraph class.
It runs
breadth-first and
depth-first searches on the
graph. If you have not yet started the
Graph Search and Creation
module, that's OK. It's enough to know that a side effect of these
searches is the linking of vertices through their
predecessor
fields.
These links can be used to access a resulting
predecessor tree
and construct solutions to problems.