theMolecule.setProperty("Ring_Perception", getRingPerceptionDataFormat(theMolecule, theRingSet));
}
public static IRingSet ringPerception(IMolecule theMolecule) throws CDKException {
AllRingsFinder theFinder = new org.openscience.cdk.ringsearch.AllRingsFinder();
IRingSet theRingSet = new org.openscience.cdk.RingSet();
theRingSet = theFinder.findAllRings(theMolecule);
for (int i = theRingSet.getAtomContainerCount() - 1; i >= 0; i--) {
if (theRingSet.getAtomContainer(i).getAtomCount() > 6) {
theRingSet.removeAtomContainer(i);
}