Shortest path for static routing