/**
* Test of getVertex method, of class AdjacencyMatrixEdge.
*/
public void testGetVertex() {
try {
AdjacencyMatrixGraph graph = new AdjacencyMatrixGraph();
graph.addVertex("A");
graph.addVertex("B");
graph.addVertex("C");
graph.addVertex("D");
graph.addEdge("A", "B", 5);
graph.addEdge("A", "C", 4);
graph.addEdge("B", "C", 10);
Set<Edge> edgeSet = graph.getEdge("A");
assertEquals(2,edgeSet.size());
assertTrue(edgeSet.contains(new AdjacencyMatrixEdge(graph,"A", "B")));
assertTrue(edgeSet.contains(new AdjacencyMatrixEdge(graph,"A", "C")));
assertFalse(edgeSet.contains(new AdjacencyMatrixEdge(graph,"B", "C")));