如何将以下recursive
算法转换为iterative
DFS-Visit(U)
color[u] = GREY
d[u] =time
time = time + 1
for each v = Adj[u] do
if color[v] = WHITE
then p[v] = u
DFS-Visit(v)
color[u] = BLACK
f[u] = time
time = time + 1