.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEPerceiveBondOrders

.. oe:function:: OEPerceiveBondOrders

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

      .. oe:api::

         void OEPerceiveBondOrders(OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

         OEPerceiveBondOrders(mol: Union[OEGraphMol,OEMol,OEQMol]) -> None

   Attempts to determine bond orders from the 3D geometry and
   connectivity of a molecule.  If the connectivity is unspecified, the
   *OEChem* function :oe:func:`OEChem::OEDetermineConnectivity` must be
   called prior to this function.

   This function invalidates the aromaticity flags of the molecule's
   atoms and bonds.  If necessary, these aromaticity flags may either be
   cleared using :oe:func:`OEChem::OEClearAromaticFlags` or set
   appropriately by calling :oe:func:`OEChem::OEAssignAromaticFlags`, after
   calling this function.

   .. seealso::

      * :ref:`chapter_connectivity` chapter and :ref:`section_connectivity_bond_order_perception` section
