Introduction to Graph Theory

The textbook uses the following graph to introduce terms in graph theory:
e   ----------------------------              -------- 
 3 |                            |            |     e  |
   |      e            e        v            v      5 |
  ----     1    ----    2     ----          ----      |
 | v  | -----> | v  | -----> | v  |        | v  | ---- 
 |  1 |        |  2 |        |  3 |        |  4 |      
  ----          ----          ----          ----       
   |      e                     ^                      
   |       4                    |                      
    ----------------------------                       
Figure 1: A directed multigraph.
[Figure 2.2 from Software Synthesis from Dataflow Graphs.]
A directed multigraph is an ordered pair (V,E) where V and E are finite sets called vertices and edges, respectively. Here are more definitions about graphs: The graph in Figure 2 below has three strongly connected components given by {v1, v2}, {v3, v4, v5}, and {v6}. The set {v4, v5} is strongly connected but is not a strongly connected component.
     ----              ----              ---- 
 -> | v  | ---------> | v  | ---------> | v  |
|   |  1 |            |  3 | <--        |  6 |
|    ----              ----     \        ---- 
|     |                 |        \         ^  
|     |                 |          ---     |  
|     |                 |             \    |  
|     v                 v              \   |  
|    ----              ----              ---- 
 -- | v  |            | v  | ---------> | v  |
    |  2 |            |  4 |            |  5 |
     ----              ----              ----
                        ^                  |  
                        |                  |  
                         ------------------   
Figure 2: A directed multigraph.
[Figure 2.2 from Software Synthesis from Dataflow Graphs.]
How many strongly connected components are there in the following graph? What are they?

e   ------------    ------------   e  
 4 |            |  |            |   3 
   v            |  v            |     
  ----          ----          ----    
 | v  | -----> | v  | -----> | v  |   
 |  1 |        |  2 |        |  3 |   
  ----          ----          ----    
   |            ^  |            ^     
e  |            |  |            |   e 
 1  ------------    ------------     2
Figure 3: Example of the concept of strongly connected component.


Updated 05/04/04.