# OEGetLongestUnbranchedCarbonsChain¶

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


Returns the size of the longest chain of all carbons in a molecule. 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).