Readded shortest path computation