Tarjan's strongly connected components algorithm: Difference between revisions

Content deleted Content added
linear time --> constant time in code comment
Line 29:
v.lowlink := min(v.lowlink, v'.lowlink);
// Ask whether v' is on the stack
// by a clever linearconstant time method
// (for example, setting a flag on the node when it is pushed or popped)
elseif (v' in S)