Shortest path code for 2420