.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEDefaultMDLHCount

.. oe:function:: OEDefaultMDLHCount

   .. oe:language:: c++ java csharp

      .. oe:api::

         unsigned int OEDefaultMDLHCount(const OEAtomBase* atm)

   .. oe:language:: python

      .. oe:api:: python

         OEDefaultMDLHCount(atm: OEAtomBase) -> int

   Determines the default number of implicit hydrogens on an atom using
   **MDL's valence model**.  This count assumes that the formal charge on an
   atom has been correctly set.  If the formal charge on each atom is not
   know *a priori*, the :oe:func:`OEChem::OEDefaultImplicitHCount`
   function may be more suitable.

   .. seealso::

      * :ref:`section_valence_mdl` section about MDL valence model
      * :oe:func:`OEChem::OEAssignMDLHydrogens` function
      * :oe:func:`OEChem::OEMDLGetValence` function
      * :oe:cls:`OEChem::OEIsValidMDLAtomValence` predicate 

