Concept:
In raster-based network analysis, the shortest path is determined by accumulating the travel cost or distance through connected grid cells.
Step 1: Understand raster routing.
Each grid cell contributes a distance or cost, and the total path length is obtained by summing these values.
Step 2: Choose the correct approach.
Thus,
\[
\boxed{\text{Shortest routes in raster networks are computed by adding grid-cell lengths along the path}.}
\]
Therefore, the correct option is
\[
\boxed{(B).}
\]