4.9 OEAssignImplicitHydrogens

void OEAssignImplicitHydrogens(OEMolBase &mol)
void OEAssignImplicitHydrogens(OEAtomBase *atm)

Set the implicit hydrogen count property of each atom in the molecule, based upon a simplistic valence model. This function assumes that the formal charges may be incorrect or haven't been assigned yet. This function should be followed with a call to the function OEAssignFormalCharges. This function calls the OEAtomBase::SetImplicitHCount method on each atom with the value returned by OEDefaultImplicitHCount. If the charge state is correctly set on each atom, you should call the OEAssignMDLHydrogens function instead.