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