SignatureQuotientGraph extends AbstractQuotientGraph { @Override public boolean isConnected(int index1, int index2) { IAtom atom1 = atomContainer.getAtom(index1); IAtom atom2 = atomContainer.getAtom(index2); return atomContainer.getBond(atom1, atom2) != null; } SignatureQuotientGraph(IAtomContainer atomContainer);  SignatureQuotientGraph(IAtomContainer atomContainer, int height); @Override /** {@inheritDoc} */ boolean isConnected(int index1, int index2);  }
@Test public void isConnectedTest() { IAtomContainer singleBond = builder.newInstance(IAtomContainer.class); singleBond.addAtom(builder.newInstance(IAtom.class, "C")); singleBond.addAtom(builder.newInstance(IAtom.class, "C")); singleBond.addBond(0, 1, IBond.Order.SINGLE); SignatureQuotientGraph quotientGraph = new SignatureQuotientGraph(singleBond); Assert.assertTrue(quotientGraph.isConnected(0, 1)); }