.. include:: ../../toolkit-substitutions

.. oe:namespace:: OEBioisostere

.. meta::
   :keywords: OEIsFragment


.. _OEBioisostere_OEIsFragment:

.. oe:function:: OEIsFragment

   .. attention::

      |PRELIMINARY-API|

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

      .. oe:api::

         bool OEIsFragment(const OEChem::OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

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

   This function determines whether the given molecule satisfies the structural criteria to be
   considered a valid fragment for bioisosteric replacement. It returns ``true`` if
   the molecule is a valid fragment and ``false`` otherwise.

