.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OECheckAtomValences

.. oe:function:: OECheckAtomValences

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

      .. oe:api::

         bool OECheckAtomValences(const OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

         OECheckAtomValences(mol: Union[OEGraphMol,OEMol,OEQMol]) -> bool

   Loops through the atoms of the molecule and calls
   :oe:func:`OEChem::OECheckAtomValence` to check if every atom is
   valid considering the **OpenEye valence model**.
   Returns ``true`` if all atoms are valid.

   .. seealso::

      * section :ref:`section_valence_openeye`
      * :oe:func:`OEChem::OECheckAtomValence` function
      * :oe:cls:`OEChem::OEIsValidAtomValence` predicate
