code: public static IAtomContainerSet partitionIntoMolecules(IAtomContainer container) {
          ConnectedComponents cc = new ConnectedComponents(GraphUtil.toAdjList(container));
          return partitionIntoMolecules(container, cc.components());
      }
docs: Partitions the atoms in an AtomContainer into covalently connected components.
  
  @param   container  The AtomContainer to be partitioned into connected components, i.e. molecules
  @return                 A MoleculeSet.
  
  @cdk.dictref   blue-obelisk:graphPartitioning