.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEBondIsInAromaticRingSize

.. oe:function:: OEBondIsInAromaticRingSize

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

      .. oe:api::

         bool OEBondIsInAromaticRingSize(const OEBondBase* bnd,
                                         unsigned int size)
         bool OEBondIsInAromaticRingSize(const OEBondBase& bnd,
                                         unsigned int size)

   .. oe:language:: python

      .. oe:api:: python

         OEBondIsInAromaticRingSize(bnd: OEBondBase, size: int) -> bool

   Determines whether the given bond is in an aromatic cycle of the
   specified size. If the bond is not aromatic, *i.e.*
   :oe:meth:`OEChem::OEBondBase::IsAromatic` returns ``false``, then this
   function also returns ``false``.

   .. warning::

      It is necessary to call :oe:func:`OEChem::OEFindRingAtomsAndBonds` and
      :oe:func:`OEChem::OEAssignAromaticFlags` functions prior to calling
      :oe:func:`OEChem::OEBondIsInAromaticRingSize` function.

   .. seealso::

      * :ref:`chapter_ring` chapter

