Localise { static boolean inSmallRing(Graph g, Edge e) { BitSet visit = new BitSet(); return inSmallRing(g, e.either(), e.other(e.either()), e.other(e.either()), 1, new BitSet()); }    }
@Test public void smallRingTest_5() throws Exception { Graph g = Graph.fromSmiles("C1CCCC1"); assertTrue(Localise.inSmallRing(g, g.edge(0, 1))); }
@Test public void smallRingTest_7() throws Exception { Graph g = Graph.fromSmiles("C1CCCCCC1"); assertTrue(Localise.inSmallRing(g, g.edge(0, 1))); }
@Test public void smallRingTest_8() throws Exception { Graph g = Graph.fromSmiles("C1CCCCCCC1"); assertFalse(Localise.inSmallRing(g, g.edge(0, 1))); }
@Test public void smallRingTest_linked() throws Exception { Graph g = Graph.fromSmiles("C1CCC(CC1)=C1CCCCC1"); assertFalse(Localise.inSmallRing(g, g.edge(3, 6))); }