Question 3

Part (a) [7 Marks]

Given initial adjacency matrix :

Iteration 1 (k=1):

Iteration 2 (k=2):

Iteration 3 (k=3):

Iteration 4 (k=4):

Final Answer:

The shortest path matrix is:

Part B Prove that every planar graph has a dual.

Proof

  1. Planar Embedding: A planar graph, G, by definition, has a planar embedding (a drawing in the plane with no edge crossings).

  2. Faces: This embedding divides the plane into faces (regions bounded by edges, including the unbounded outer face).

  3. Dual Graph Construction: We construct the dual graph, , as follows:

    • For each face f in the planar embedding of G, create a vertex in .
    • For each edge e in G, if e is on the boundary of two faces, and , draw an edge in connecting and . If e is only on one face, draw a loop on the corresponding vertex.
  4. Dual is a Graph: The result of this construction, , is a graph (possibly with multiple edges or loops). This is because each edge in the dual corresponds to a unique edge in the original graph, and each vertex in the dual corresponds to a unique face in the original graph’s planar embedding.

Conclusion: Therefore, given any planar graph G, we can always construct its dual graph, , based on its planar embedding. This proves that every planar graph has a dual.