TOPICS
Search

Reachability Matrix


For a directed graph with vertices v_1, ..., v_n, the reachability matrix R records whether one graph vertex can be reached from another along a directed graph path. With zero-length paths included, its entries are

 R_(ij)={1   if v_j is reachable from v_i; 0   otherwise.
(1)

In particular, R_(ii)=1 for every i. This matrix represents the reflexive closure of the transitive closure of the binary relation defined by the directed edges.

If A is the adjacency matrix, with A_(ij) recording edges directed from v_i to v_j, then

 R=sgn(sum_(k=0)^(n-1)A^k),
(2)

where A^0 is the identity matrix and the sign function is applied to each entry separately. The powers count directed walks, and a reachable pair of distinct vertices always has a graph path of length at most n-1. Other conventions require positive-length directed walks; under those conventions, a diagonal entry is 1 only when its graph vertex belongs to a directed graph cycle.

In control theory, "reachability matrix" also denotes the controllability matrix of a finite-dimensional linear time-invariant system, whose column space consists of the states reachable from the zero state.


See also

Adjacency Matrix, Controllability Matrix, Directed Graph, Reflexive Closure, Transitive Closure

Explore with Wolfram|Alpha

References

Warshall, S. "A Theorem on Boolean Matrices." J. ACM 9, 11-12, 1962. https://doi.org/10.1145/321105.321107.

Cite this as:

Weisstein, Eric W. "Reachability Matrix." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/ReachabilityMatrix.html

Subject classifications