Generator { String string() { return sb.toString(); } Generator(Graph g, RingNumbering rnums);   Generator(Graph g, int[] visitedAt, RingNumbering rnums);   }
@Test public void reuseNumbering() throws IOException { Generator generator = new Generator(Graph.fromSmiles("c1cc1c2ccc2"), new Generator.ReuseRingNumbering(1)); assertThat(generator.string(), is("c1cc1c1ccc1")); }
@Test public void resetRingNumbersBetweenComponents1() throws Exception { Graph g = Graph.fromSmiles("C1CC1.C1CC1"); assertThat(new Generator(g, new Generator.ReuseRingNumbering(1)).string(), is("C1CC1.C1CC1")); }
@Test public void resetRingNumbersBetweenComponents2() throws Exception { Graph g = Graph.fromSmiles("C1CC1.C1CC1"); assertThat(new Generator(g, new Generator.IterativeRingNumbering(1)).string(), is("C1CC1.C1CC1")); }