All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----jdsltools.testers.GenericTester | +----jdsltools.testers.graphtester.GraphTest
Graph
implementation against a reference
graph. It checks after every operation for equivalence with a reference
graph. The GraphComparator does a lot of the work here as it uses many
of the methods of Graph
to test for equality. These methods
are: size, isEmpty, numVertices, numEdges, vertices,
elements, edges, positions
The GraphFactory in the process of building a random graph uses and therefore in effect tests insertEdge, insertVertex, and newContainer.
public GraphTest(Factory builder, StructureComparator comp, String ref)
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index