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

.. oe:namespace:: OEBioisostere

.. meta::
   :keywords: OEMolCTBuilder, MolCTBuilder


.. _OEBioisostere_OEMolCTBuilder:

.. oe:class:: OEMolCTBuilder

   .. attention::

      |PRELIMINARY-API|

   .. oe:api::

      class OEMolCTBuilder

   This class builds molecule from structural connection table during bioisosteric 
   fragment replacements, including validation of required chemical constraints.

   The :ref:`OEMolCTBuilder <OEBioisostere_OEMolCTBuilder>` class defines the following public method:
    * :oe:meth:`Build<OEBioisostere::OEMolCTBuilder::Build>`



   .. _OEBioisostere_OEMolCTBuilder_Constructors:
   .. oe:method:: Constructors

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

         .. oe:api::

            OEMolCTBuilder(const OEBroodQuery& query,
                           const OEBroodGeneralOptions& genOpts = OEBroodGeneralOptions(),
                           const OEBroodBuildOptions& options = OEBroodBuildOptions())

      .. oe:language:: python

         .. oe:api:: python

            OEMolCTBuilder(query: OEBroodQuery,
                           genOpts: OEBroodGeneralOptions = OEBroodGeneralOptions(),
                           options: OEBroodBuildOptions = OEBroodBuildOptions()) -> OEMolCTBuilder

      This method constructs an :ref:`OEMolCTBuilder <OEBioisostere_OEMolCTBuilder>` with
      query and option settings that define the connection-table validation
      context.


   .. _OEBioisostere_OEMolCTBuilder_Build:

   .. oe:method:: Build

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

         .. oe:api::

            bool Build(OEChem::OEMolBase& mol)

      .. oe:language:: python

         .. oe:api:: python

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

      This method validates the connection table of the given molecule based on query
      constraints. It returns ``true`` if the molecule connection table is valid and
      ``false`` otherwise.

