Consider the following pseudocode for depth-first search (DFS) algorithm which
takes a directed graph πΊ(π, πΈ) as input, where π[π£] and π[π£] are the discovery time
and finishing time, respectively, of the vertex π£ βπ.
π·πΉπ(πΊ):
π’πππππ πππ π£βπ
π‘ β0
πππ πππβ π£βπ
ππ π£ ππ π’πππππππ
π‘βπΈπ₯πππππ(πΊ, π£, π‘)
πππ ππ
πππ πππ
πΈπ₯πππππ(πΊ, π£, π‘):
ππππ π£
π‘ βπ‘+ 1
π[π£] βπ‘
πππ πππβ (π£, π€) βπΈ
ππ π€ ππ π’πππππππ
π‘βπΈπ₯πππππ(πΊ, π€, π‘)
πππ ππ
πππ πππ
π‘ βπ‘ + 1
π[π£] βπ‘
πππ‘π’ππ π‘
Suppose that the input directed graph πΊ(π, πΈ) is a directed acyclic graph (DAG).
For an edge (π’, π£) βπΈ, which of the following options will NEVER be correct?