Work in pairs on this lab.
Your goal is to finish the graph implementation that we (barely) started in class.
Implement all the methods except the traversals and the shortest path. Write tests as needed. Make sure to use equals
method, and not ==, to test for equality of keys.
Only implement the traversals if you have time. Traversals start with a vertex and return a collection of all vertices reachable (via edges) from that vertex. The breadth-first traversal visits a vertex, then all its neighbors, then the neighbors of the neighbors, etc. The depth-first traversal follows the edges as far as possible, and then jumps back to the starting point to visit the other parts of the graph, if any. The outline is as follows:
Write JUnit tests for your methods, make sure the tests pass, and submit the tests with your code.
Submit the java file(s) with your testing code by e-mail to me. The subject of the message must be 2101 Lab 11. Make sure to CC your group partners.