Slide 21
Slide 21 text
Denition of reachability in a directed acyclic graph (DAG)
Denition of reachability (graph theory)
Let's assume that we have directed acyclic graph G = (V ,E), where V is nite set of vertices
(nodes), and E ⊂ V 2 is nite set of directed edges.
∀(u,v) ∈ V 2 we say that v is reachable from u, which we denote as r(u,v) or as u ⇝ v,
if and only if u = v or ∃(u,w) ∈ E ∧r(w,v).
Properties of this relation
∀v ∈ V : r(v,v)
r(u,w)∧r(w,v) =⇒ r(u,v)
r(u,v)∧r(v,u) =⇒ u = v
Reachability relation imposes partial order
for nodes in the graph
dr J. Nar¦bski (UMK, Toru«) Graph operations in Git presented on 03.12.2019 (v1.2) 15 / 68