@@ -0,0 +1,1903 @@
+package com.test.graphs;%0A%0Aimport com.graphs.GraphEdgeListRepresentation;%0A%0Aimport junit.framework.TestCase;%0A%0Apublic class TestGraphEdgeListRepresentation extends TestCase%7B%0A%0A    public void testGraphEdgeListRepresentationOperations() %7B%0A        %0A        //Undirected graph%0A        GraphEdgeListRepresentation graph = new GraphEdgeListRepresentation(10, false);%0A        graph.addEdge(0, 1);%0A        graph.addEdge(0, 6);%0A        graph.addEdge(0, 8);%0A        graph.addEdge(1, 4);%0A        graph.addEdge(1, 6);%0A        graph.addEdge(1, 9);%0A        graph.addEdge(2, 4);%0A        graph.addEdge(2, 6);%0A        graph.addEdge(3, 4);%0A        graph.addEdge(3, 5);%0A        graph.addEdge(3, 8);%0A        graph.addEdge(4, 5);%0A        graph.addEdge(4, 9);%0A        graph.addEdge(7, 8);%0A        graph.addEdge(7, 9);%0A        assertEquals(15, graph.getE_Size());%0A        assertEquals(10, graph.getV_Size());%0A        assertEquals(true, graph.hasEdge(7, 8));%0A        assertEquals(true, graph.hasEdge(8, 7));%0A        assertEquals(false, graph.hasEdge(0, 5));%0A//        System.out.println(graph.toString());%0A        %0A      //Directed graph%0A        graph = new GraphEdgeListRepresentation(10, true);%0A        graph.addEdge(0, 1);%0A        graph.addEdge(0, 6);%0A        graph.addEdge(0, 8);%0A        graph.addEdge(1, 4);%0A        graph.addEdge(1, 6);%0A        graph.addEdge(1, 9);%0A        graph.addEdge(2, 4);%0A        graph.addEdge(2, 6);%0A        graph.addEdge(3, 4);%0A        graph.addEdge(3, 5);%0A        graph.addEdge(3, 8);%0A        graph.addEdge(4, 5);%0A        graph.addEdge(4, 9);%0A        graph.addEdge(7, 8);%0A        graph.addEdge(7, 9);%0A        assertEquals(15, graph.getE_Size());%0A        assertEquals(10, graph.getV_Size());%0A        assertEquals(true, graph.hasEdge(7, 8));%0A        assertEquals(false, graph.hasEdge(8, 7));%0A        assertEquals(false, graph.hasEdge(0, 5));%0A        System.out.println(graph.toString());%0A    %7D%0A    %0A%7D%0A

Add JUnit to test the Edge list representation of graph