src/test/java/org/thegalactic/dgraph/DAGraphTest.java
@Test
    public void testRandom() {
        DAGraph dag = DAGraph.random(10, 0);
        assertEquals(dag.sizeNodes(), 10);
        assertEquals(dag.sizeEdges(), 0);

        dag = DAGraph.random(10, 1);
        assertEquals(dag.sizeNodes(), 10);
        assertEquals(dag.sizeEdges(), 45);
    }
/**
     * Test the random static method.
     */
Test the random static method.
Test the random static method .
@Test
    public void testRandom() {
        DAGraph dag = DAGraph.random(10, 0);
        assertEquals(dag.sizeNodes(), 10);
        assertEquals(dag.sizeEdges(), 0);
        dag = DAGraph.random(10, 1);
        assertEquals(dag.sizeNodes(), 10);
        assertEquals(dag.sizeEdges(), 45);
    }
@ Test public void testRandom ( ) { DAGraph dag = DAGraph . random ( 10 , 0 ) ; assertEquals ( dag . sizeNodes ( ) , 10 ) ; assertEquals ( dag . sizeEdges ( ) , 0 ) ; dag = DAGraph . random ( 10 , 1 ) ; assertEquals ( dag . sizeNodes ( ) , 10 ) ; assertEquals ( dag . sizeEdges ( ) , 45 ) ; }
Test the random static method.
Test the random static method .