code: @Override
      public DescriptorValue calculate(IAtomContainer container) {
  
          IAtomContainer local = AtomContainerManipulator.removeHydrogens(container);
  
          DoubleArrayResult retval = new DoubleArrayResult(19);
          for (int i = 0; i < 19; i++) {
              retval.add(dedge(local, i));
          }
  
          return new DescriptorValue(getSpecification(), getParameterNames(), getParameters(), retval,
                  getDescriptorNames());
      }
docs: Calculate the weight of specified element type in the supplied {@link org.openscience.cdk.interfaces.IAtomContainer}.
  
  @param container The AtomContainer for which this descriptor is to be calculated. If 'H'
  is specified as the element symbol make sure that the AtomContainer has hydrogens.
  @return The total weight of atoms of the specified element type