More on shortest path as supplied by daniel kuppitz.