CS 2213/2211
Advanced Programming
Example Graph

   
Figure 0
 
 
Figure 1
 
 
   
Figure 2
 
 
Figure 3
 
 
   
Figure 4
 
 
Figure 5

Note: above, at each step another vertex u has status[u] changed for 0 to 1. At this point its circle is drawn in red. At the end, all vertices are taken care of.