private static IRingSet toRingSet ( IAtomContainer container , int [ ] [ ] cycles , EdgeToBondMap bondMap ) { // note currently no way to say the size of the RingSet // even through we know it IChemObjectBuilder builder = container . getBuilder ( ) ; IRingSet rings = builder . newInstance ( IRingSet . class ) ; for ( int [ ] cycle : cycles ) { rings . addAtomContainer ( toRing ( container , cycle , bondMap ) ) ; } return rings ; }
Internal - convert a set of cycles to an ring set .