OEAtomIsInRingSize¶
bool OEAtomIsInRingSize(const OEAtomBase *atm, unsigned int size)
bool OEAtomIsInRingSize(const OEAtomBase &atm, unsigned int size)
Determines whether the given atom is in a cycle of the specified size.
If the atom is not in a
ring, i.e. OEAtomBase.IsInRing
returns false
,
then this function also returns false
. This function also returns
false
for all values of size less than three.
Warning
It is necessary to perform ring perception by calling
OEFindRingAtomsAndBonds
function prior to calling
OEAtomIsInRingSize
function.
See also
Ring Perception chapter