src/test/java/org/thegalactic/dgraph/DGraphFactoryTest.java
@Test
    public void testRandom() {
        ConcreteDGraph graph = DGraphFactory.getInstance().random(10, 0);
        assertEquals(graph.sizeNodes(), 10);
        assertEquals(graph.sizeEdges(), 0);

        graph = DGraphFactory.getInstance().random(10, 1);
        assertEquals(graph.sizeNodes(), 10);
        assertEquals(graph.sizeEdges(), 100);
    }
/**
     * Test the random static method.
     */
Test the random static method.
Test the random static method .
@Test
    public void testRandom() {
        ConcreteDGraph graph = DGraphFactory.getInstance().random(10, 0);
        assertEquals(graph.sizeNodes(), 10);
        assertEquals(graph.sizeEdges(), 0);
        graph = DGraphFactory.getInstance().random(10, 1);
        assertEquals(graph.sizeNodes(), 10);
        assertEquals(graph.sizeEdges(), 100);
    }
@ Test public void testRandom ( ) { ConcreteDGraph graph = DGraphFactory . getInstance ( ) . random ( 10 , 0 ) ; assertEquals ( graph . sizeNodes ( ) , 10 ) ; assertEquals ( graph . sizeEdges ( ) , 0 ) ; graph = DGraphFactory . getInstance ( ) . random ( 10 , 1 ) ; assertEquals ( graph . sizeNodes ( ) , 10 ) ; assertEquals ( graph . sizeEdges ( ) , 100 ) ; }
Test the random static method.
Test the random static method .