code: @Override
      public int getConnectedBondsCount(IAtom atom) {
          int count = 0;
          for (int i = 0; i < bondCount; i++) {
              if (bonds[i].contains(atom)) ++count;
          }
          if (count == 0 && !contains(atom))
              throw new NoSuchAtomException("Atom does not belong to the container!");
          return count;
      }
docs: {@inheritDoc}