.. oe:namespace:: OEShape

.. meta::
   :keywords: OESetColorParents

..  _OEShape_OESetColorParents:

.. oe:function:: OESetColorParents

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

      .. oe:api::

         bool OESetColorParents(OEChem::OEAtomBase* atom,
                                const OEChem::OEAtomBase** parents,
                                unsigned num)

   .. oe:language:: python

      .. oe:api:: python

         OESetColorParents(atom: OEAtomBase, parents: OEAtomBase, num: int) -> bool

   Set the parent atoms of a given color atom. Not normally used as
   parents are set for color atoms added via a SMARTS match in the
   color force field. But if you are manually creating color atoms,
   this is a way to set its parents.
