I found a lot of references to the AI of the ghosts in Pacman, but none of them mentioned how the eyes find their way back to the central ghost hole after a ghost is eaten by Pa
For my PacMan game I made a somewhat "shortest multiple path home" algorithm which works for what ever labyrinth I provide it with (within my set of rules). It also works across them tunnels.
When the level is loaded, all the path home data in every crossroad
is empty (default) and once the ghosts start to explore the labyrinth, them crossroad path home information
keeps getting updated every time they run into a "new" crossroad or from a different path stumble again upon their known crossroad.