Distance in a Graph

Distance in a Graph

In a connected graph or a connected component of a disconnected graph, we call the distance between two vertices the minimum number of edges of a chain going from one to the other.

Similarly, in a directed connected graph or a connected component of a directed disconnected graph, we call the distance between two vertices the minimum number of arcs in a path going from one to another.

Example

In the directed graph below, the distance between the vertices 1 and 9 is 2.

See also :

Try Buzzmath activities for free

and see how the platform can help you.