# OEBondIsInRingSize¶

bool OEBondIsInRingSize(const OEBondBase *bnd, unsigned int size)
bool OEBondIsInRingSize(const OEBondBase &bnd, unsigned int size)


Determines whether the given bond is in a cycle of the specified size. If the bond is not in a ring, i.e. OEBondBase.IsInRing returns false, then this function also returns false. This function also returns false for all values for size less than three.

Warning

It is necessary to perform ring perception by calling OEFindRingAtomsAndBonds function prior to calling OEBondIsInRingSize function.