@Test public void testCycle() throws Exception { Structure result = (new Cycle()).generate(new StringAlgorithmParameter("", "5")); assertTrue(result instanceof DirectedGraph); assertEquals(result.getVertices().size(), 5); assertEquals(result.getEdges().size(), 5); }
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();  }