Branches from Frankston line at Caulfield station .
The Pakenham line branches from the Lilydale line at Richmond and shares four tracks with the Frankston line to Caulfield , running next to the Sandringham line as far as South Yarra .