.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEGetSoleNeighbor

.. oe:function:: OEGetSoleNeighbor

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

      .. oe:api::

         OEAtomBase* OEGetSoleNeighbor(const OEAtomBase* atm)

   .. oe:language:: python

      .. oe:api:: python

         OEGetSoleNeighbor(atm: OEAtomBase) -> OEAtomBase

   Gets the first neighbor of the given atom. If there is more than one neighbor, the atom chosen
   is arbitrary. If there is no atom, the function returns a null pointer. 

