DDG weight assignment function tested.