Calculating if a cuboid has an integer shortest route
Calculating routes for a given m
Calculating routes