* Test of hashCode method, of class AdjacencyMatrixVertex.
*/
public void testHashCode() {
AdjacencyMatrixGraph graph = new AdjacencyMatrixGraph();
AdjacencyMatrixVertex v1 = new AdjacencyMatrixVertex(graph, "id");
AdjacencyMatrixVertex v2 = new AdjacencyMatrixVertex(graph, "id");
AdjacencyMatrixVertex v3 = new AdjacencyMatrixVertex(graph, "id2");
AdjacencyMatrixVertex v4 = new AdjacencyMatrixVertex(graph, null);
AdjacencyMatrixVertex v5 = new AdjacencyMatrixVertex(graph, null);
assertTrue(v1.hashCode() == v2.hashCode());
assertFalse(v1.hashCode() == v3.hashCode());
assertFalse(v2.hashCode() == v3.hashCode());
assertFalse(v1.hashCode() == v4.hashCode());
assertTrue(v5.hashCode() == v4.hashCode());
}