.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEAssignSerialNumbers

.. oe:function:: OEAssignSerialNumbers

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

      .. oe:api::

         void OEAssignSerialNumbers(OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

         OEAssignSerialNumbers(mol: Union[OEGraphMol,OEMol,OEQMol]) -> None

   The function assigns sequential atom serial numbers to the atoms of a
   molecule, as currently ordered in the :ref:`OEMolBase <OEChem_OEMolBase>`.
   The atom serial number is stored in :ref:`OEResidue <OEChem_OEResidue>` that is
   associated with each :ref:`OEAtomBase <OEChem_OEAtomBase>` via the
   :oe:const:`OEChem::OEProperty::Residue` property.

   .. seealso::

      * :oe:func:`OEChem::OEAtomGetResidue`


