test.edu.uci.ics.jung.graph.impl
Class BasicGraphTest

java.lang.Object
  extended by TestCase
      extended by test.edu.uci.ics.jung.graph.impl.BasicGraphTest
Direct Known Subclasses:
BasicGraphTest.BasicGraphSparseTest

public abstract class BasicGraphTest
extends TestCase

Author:
danyelf

Nested Class Summary
static class BasicGraphTest.BasicGraphSparseTest
           
 
Constructor Summary
BasicGraphTest(String string)
           
 
Method Summary
abstract  Vertex getVertex()
           
 void setUp()
           
static Test suite()
           
 void tearDown()
           
 void testBadEdgesParallel()
           
 void testDirectedGraph()
           
 void testEdgesOkSelfLoop()
           
 void testEquality()
          make sure that vertices and edges are equal to themselves, even if they're not in a graph.
 void testFindEdge()
           
 void testFindEdgeSet()
           
 void testGoodEdgesOpposite()
           
protected  void testGraph(Graph sag, int edges, int vertices)
           
 void testGraphAppropriateness()
           
 void testParallelEdgeAdd()
           
 void testPredecessorConsistency()
           
 void testPredecessorConsistencyDirected()
           
 void testSimpleDirectedGraph()
          Incrementally creates a graph( 3, 3 ) and checks that the edges add up correctly.
 void testSimpleDirectedGraphEdges()
           
 void testSimpleUndirectedGraph()
           
 void testUndirectedGraph()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicGraphTest

public BasicGraphTest(String string)
Parameters:
string -
Method Detail

suite

public static Test suite()

setUp

public void setUp()

tearDown

public void tearDown()

getVertex

public abstract Vertex getVertex()

testGraph

protected final void testGraph(Graph sag,
                               int edges,
                               int vertices)

testPredecessorConsistency

public final void testPredecessorConsistency()

testPredecessorConsistencyDirected

public final void testPredecessorConsistencyDirected()

testSimpleUndirectedGraph

public final void testSimpleUndirectedGraph()

testSimpleDirectedGraph

public final void testSimpleDirectedGraph()
Incrementally creates a graph( 3, 3 ) and checks that the edges add up correctly.


testSimpleDirectedGraphEdges

public final void testSimpleDirectedGraphEdges()

testGoodEdgesOpposite

public final void testGoodEdgesOpposite()

testBadEdgesParallel

public final void testBadEdgesParallel()

testEdgesOkSelfLoop

public final void testEdgesOkSelfLoop()

testGraphAppropriateness

public final void testGraphAppropriateness()

testParallelEdgeAdd

public final void testParallelEdgeAdd()

testFindEdgeSet

public void testFindEdgeSet()

testFindEdge

public void testFindEdge()

testDirectedGraph

public void testDirectedGraph()

testUndirectedGraph

public void testUndirectedGraph()

testEquality

public void testEquality()
make sure that vertices and edges are equal to themselves, even if they're not in a graph.