Why not fence the cemetary? That is the most obvious solution to me ...