Hugging of deceased father/grandfather dream meaning: secure comfort and protective mastery
To dream about hugging the deceased father means your ability to achieve secure comfort in your waking life. If hugging the dead grandfather, then it symbolizes your potential to acquire mastery in protecting not only yourself but others too.
To be hugged by the dead father means that you have acquired guarded relaxation. If that is done by your grandfather β means that you have received mastery in protecting others.