code: @Override
      public int getConnectedBondsCount(int idx) {
          final IAtom atom  = getAtom(idx);
          int         count = 0;
          for (int i = 0; i < bondCount; i++) {
              if (bonds[i].contains(atom)) ++count;
          }
          // no need to check the contains(atom) as getAtom does this already
          return count;
      }
docs: {@inheritDoc}