1. If v is visited for the first time as we traverse the edge (u,v), then the edge is atreeedge. 
2. Else, v has already been visited: 
(a) If v is an ancestor of u, then edge (u,v) is abackedge. 
(b) Else, if v is a descendant of u, then edge (u,v) is aforwardedge. 
(c) Else, if v is neither an ancestor or descendant of u, then edge (u,v) is acrossedge.
 
1. If v is visited for the first time as we traverse the edge (u,v), then the edge is atreeedge. 2. Else, v has already been visited: (a) If v is an ancestor of u, then edge (u,v) is abackedge. (b) Else, if v is a descendant of u, then edge (u,v) is aforwardedge. (c) Else, if v is neither an ancestor or descendant of u, then edge (u,v) is acrossedge.
การแปล กรุณารอสักครู่..
