Tag each edge in the rail network with a weight that can be used as a multiplicative factor to reduce the distance of that edge.
Tag each edge in the rail network with a weight that can be used as a multiplicative factor to reduce the distance of that edge.