pub fn format_route(route: &[Vec<usize>]) -> String
Expand description
Formats a routing path as a string, showing each hop in order.
Each line shows the hop index, an arrow (→
for intermediate
steps, ⇨
for the final destination), and the coordinate as a
tuple (e.g., (0, 1)
).
§Example
0 → (0, 0)
1 → (0, 1)
2 ⇨ (1, 1)