4.7 OEAssignFormalCharges

void OEAssignFormalCharges(OEMolBase &mol)

Set the formal charge property of each atom in the molecule, based upon a simplistic valence model. This function assumes that the bond orders and implicit hydrogen counts have been set on a molecule. For example, this function will place a single positive charge on a four-valent nitrogen.