AtomSignature extends AbstractVertexSignature { @Override protected int[] getConnected(int vertexIndex) { IAtom atom = this.molecule.getAtom(vertexIndex); List<IAtom> connected = this.molecule.getConnectedAtomsList(atom); int[] connectedIndices = new int[connected.size()]; int indexCounter = 0; for (IAtom otherAtom : connected) { connectedIndices[indexCounter++] = this.molecule.indexOf(otherAtom); } return connectedIndices; } AtomSignature(int atomIndex, IAtomContainer molecule);  AtomSignature(IAtom atom, IAtomContainer molecule);  AtomSignature(int atomIndex, int height, IAtomContainer molecule);  AtomSignature(IAtom atom, int height, IAtomContainer molecule);  AtomSignature(int atomIndex, int height, InvariantType invariantType, IAtomContainer molecule);  AtomSignature(IAtom atom, int height, InvariantType invariantType, IAtomContainer molecule);   }
@Test public void getConnectedTest() { Assert.assertEquals(1, atomSignature.getConnected(0)[0]); }