Analysis

Observations: If u is gray when v is blackened, then v is forward reachable from u. If u preceeds v in L, then u was either white or gray when v was blackened. If white, then u is not forward reachable from v.

Let u be the first node in L (the first traversal).


next up previous
Next: Summary Up: STRONGLY CONNECTED COMPONENTS Previous: Running Time Analysis