A person should not be buried in a previous grave unless it is certain that the corpse has completely disintegrated and that nothing of the remains is left.
This is best determined by people with experience and know-how of their particular land.
Also, it is forbidden to bury two in one grave because the Prophet (P. B. U. H) buried one person per grave.
But, if necessity dictates, then it is permitted because the Prophet (P. B. U. H) combined each two of the dead of Uhud in one sheet.
Jaber ibn Abdullah (G. p. H)) narrated that:
"The Prophet (P. B. U. H) used to join the dead of Uhud in pairs".
[Al-Bukhari, Vol. 1, The Book of Funerals. Chapter 72/1280].
If necessity dictates that a man be buried with a woman (in the same grave), a barrier of earth should be made between them and the man should be laid in front other, as if they were living, even if he is her son.
Similarly, it is forbidden to bury an unbeliever in a Muslim graveyard or to bury a Muslim in a graveyard for the unbelievers.
It is forbidden to dig out a grave before the body has completely disintegrated.