3.1.5 GetDegree

virtual unsigned int GetDegree() const

Return the total number of neighbor atoms bonded to an atom, or equivalently the total number of bonds connected to an atom. This value includes bonds to implicit hydrogen atoms. This value is identical to OEAtomBase::GetExplicitDegree() + OEAtomBase::GetImplicitHCount(), and is also identical to OEAtomBase::GetHvyDegree() + OEAtomBase::GetTotalHCount().