The distance from a vertex to a vertex is the length of a shortest path from to . If there is no such path, there is no distance.
Computer Science · Glossário
O que é Distance?
Também chamado de: distance (graph)
The distance is the smallest length of a path from to , counted in edges, and if is not reachable from .