.. # split from OEMedChemFunctions.rst:160


.. oe:namespace:: OEMedChem

.. meta::
   :keywords: OEDetermineMolecularComplexity

.. oe:function:: OEDetermineMolecularComplexity

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

      .. oe:api::

         float OEDetermineMolecularComplexity(const OEChem::OEMolBase& mol)
         float OEDetermineConnectiveComplexity(const OEChem::OEMolBase& mol)
         float OEDetermineElementalComplexity(const OEChem::OEMolBase& mol)
         float OEDetermineSymmetryComplexity(const OEChem::OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

         OEDetermineMolecularComplexity(mol: Union[OEGraphMol,OEMol,OEQMol]) -> float

   .. note::

      The molecule arguments are ``const``, so the
      :oe:func:`OEChem::OEPerceiveChiral` perception activity must be
      performed prior to calling these functions.

   From [Bertz-1981]_.  Includes connectivity and elemental complexity.  Though
   aromaticity is not addressed in the brief literature note, aromatic bonds are not counted as
   double bonds for the entropy calculation in this implementation.  The three additional api points return the
   three individual terms that make up the Molecular Complexity as defined by Bertz.

   .. seealso::

      * :oe:func:`OEMedChem::OEDetermineRingComplexity`
      * :oe:func:`OEMedChem::OENormalMolecularComplexity`

