Quiz 5


27 July

Draw a representation of the adjacency matrix and adjacency list for the following directed graph. (the stars represent arrows)

     (2) 
     *    \
    / |      \
   /  |         *
(1)-------------* (4)
  \   |            *
    \ |            |
      \            |
      | \          |
      |   *        |
      |    (6)     |
      *            |
     (3)--------* (5)

Solution

Matrix

123456
1111
211
31
4
51
6

List

VertexList
12-->4-->6
23-->4
35
4
54
6


Last updated : 27 July 1999 4:32pm