Lably
Skip to content

Reachability

  • 7 min read
  • 3 chapters

Related on Lably

Through If and only if, Directed graph and Relation (mathematics)

In an undirected graph, reachability between all pairs of vertices can be determined by identifying the connected components of the graph. Any pair of vertices in such a graph can reach each other if and only if they belong to the same connected component; therefore, in such a graph, reachability is symmetric (s reaches t iff t reaches s). The connected components of an undirected graph can be identified in linear time. The remainder of this article focuses on the more difficult problem of determining pairwise reachability in a directed graph (which, incidentally, need not be symmetric).

Definition

For a directed graph G=(V,E), with vertex set V and edge set E, the reachability relation of G is the transitive closure of E, which is to say the set of all ordered pairs (s,t) of vertices in V for which there exists a sequence of vertices v0=s,v1,v2,...,vk=t such that the edge (vi−1,vi) is in E for all 1≤i≤k.

If G is acyclic, then its reachability relation is a partial order; any partial order may be defined in this way, for instance as the reachability relation of its transitive reduction. A noteworthy consequence of this is that since partial orders are anti-symmetric, if s can reach t, then we know that t cannot reach s. Intuitively, if we could travel from s to t and back to s, then G would contain a cycle, contradicting that it is acyclic. If G is directed but not acyclic (i.e. it contains at least one cycle), then its reachability relation will correspond to a preorder instead of a partial order.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Topics in mathematics