protected IRingSet getRingSet ( IAtomContainer atomContainer ) { IRingSet ringSet = atomContainer . getBuilder ( ) . newInstance ( IRingSet . class ) ; try { IAtomContainerSet molecules = ConnectivityChecker . partitionIntoMolecules ( atomContainer ) ; for ( IAtomContainer mol : molecules . atomContainers ( ) ) { ringSet . add ( Cycles . sssr ( mol ) . toRingSet ( ) ) ; } return ringSet ; } catch ( Exception exception ) { logger . warn ( "Could not partition molecule: " + exception . getMessage ( ) ) ; logger . debug ( exception ) ; return ringSet ; } }
Determine the ring set for this atom container .