Rename shortest_path to chained_path, which reflects its algorithm more correctly