@Test public void testRandomgraph() throws Exception { int n = 8; double p = 0.2; boolean directed = true; Structure result = (new RandomGraph()).generate(new RandomGraphParameters(Arrays.asList(Integer.toString(n), Double.toString(p), Boolean.toString(directed)))); assertTrue(result instanceof DirectedGraph); assertEquals(n,result.getVertices().size()); }
public abstract Structure generate(AlgorithmParameters p) throws Exception;
Generator { public abstract Structure generate(AlgorithmParameters p) throws Exception; }
Generator { public abstract Structure generate(AlgorithmParameters p) throws Exception;  }
Generator { public abstract Structure generate(AlgorithmParameters p) throws Exception;  AlgorithmParameters getParameters(); abstract Structure generate(AlgorithmParameters p); GeneratorDescription getDescription(); }
Generator { public abstract Structure generate(AlgorithmParameters p) throws Exception;  AlgorithmParameters getParameters(); abstract Structure generate(AlgorithmParameters p); GeneratorDescription getDescription();  }