Reachability in a graph

ID: reachability-in-a-graph

A vertex is reachable from if a finite path leads from to , respecting edge directions in a directed graph. For a finite graph, graph search decides reachability by maintaining the set of discovered vertices; every step discovers a new vertex or examines an edge, so the procedure terminates.

New to topics? Read the docs here!