Analysis

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

Let u be the first node in L (after the first call to topological sort).


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