They almost all go through Cowdenbeath. The Fife circle through Cowdenbeath and Glenrothes is just a local line to Edinburgh but parts of it cover the East Coast mainline. Funny, I've travelled so often from Cowdenbeath yet only once has my train stopped at Edinburgh Gateway.