code: public boolean cyclic(IAtom atom) {
          int i = container.indexOf(atom);
          if (i < 0) throw new NoSuchAtomException("no such atom");
          return cyclic(i);
      }
docs: Determine whether the provided atom belongs to a ring (is cyclic).
  
  <blockquote><pre>{@code
  IAtomContainer mol        = ...;
  RingSearch     ringSearch = new RingSearch(mol);
  
  for(IAtom atom : mol.atoms()){
  if(ringSearch.cyclic(atom)){
  ...
  }
  }
  }</pre></blockquote>
  
  @param atom an atom
  @return whether the atom is in a ring
  @throws NoSuchAtomException the atom was not found