OEGetLongestUnbranchedHeavyAtomsChainΒΆ

unsigned int OEGetLongestUnbranchedHeavyAtomsChain(const OEChem::OEMolBase &mol)

Returns the size of the longest chain of heavy atoms in a molecule. This is defined to be the maximum number of connected, unbranched, and non-ring heavy atoms. An unbranched atom is a chain atom with maximum two connections to other heavy chain atoms. A set of unbranched atoms which are connected together form a chain. A molecule may contain multiple chains which are isolated from each other by non-chain atoms (e.g. ring or branched atoms).

See also

Examples

The OEGetLongestUnbranchedHeavyAtomsChain function returns 4 for the molecule below.

../../_images/uchain_AllC.png

The OEGetLongestUnbranchedHeavyAtomsChain function returns 4 for the molecule below.

../../_images/uchain_heavy_NotAllC.png