Offline DAG reachability under vertex failures
A small directed acyclic graph shows how to test whether any query still reaches one of its targets after deleting failed vertices.
One graph, three failure queries
Let the source be s, with two branches s → a → t and s → b → u. In each query, remove the failed vertices and look for a surviving directed path to any target in that query.
| Failed vertices | Targets | A target is reachable |
|---|---|---|
| {a} | {t} | No |
| {a} | {t, u} | Yes, through b to u |
| {a, b} | {t, u} | No |
The batch question asks whether at least one query succeeds. Here the second query supplies a witness.
Why knowing the batch helps
Running a graph search for each query repeats work on the same DAG. The paper gives a threshold algorithm for queries with at most two failures. The threshold trades the work of handling failure pairs against the space used to save information across queries.
When the number of arcs, queries, and target incidences is each linear in the number of vertices n, the square-root threshold gives Õ(n3/2) time, where Õ suppresses polylogarithmic factors. Other results give near-linear time under structural restrictions, including polylogarithmic DAG depth.