GATE DA 2025 · Question 58 · Programming, Data Structures and Algorithms · Multiple select (MSQ) · 2 marks · no negative marks

Let G be a simple, unweighted, and undirected graph. A subset of the vertices and edges of G are shown below.
It is given that a - b - c - d is a shortest path between a and d; e - f - g - h is a shortest path between e and h; a - f - c - h is a shortest path between a and h. Which of the following is/are NOT the edges of G?

Undirected graph with 8 vertices in two rows. Top row, left to right: a, b, c, d. Bottom row, left to right: e, f, g, h. Edges shown: a–b, b–c, c–d (top row); e–f, f–g, g–h (bottom row); diagonal a–f, diagonal f–c, diagonal c–h. No other edges are drawn.
  1. (A) (b, d)
  2. (B) (b, g)
  3. (C) (b, h)
  4. (D) (e, g)
Answer

Answer (A), (C), (D)

Answer from the official GATE DA 2025 answer key.

The step-by-step solution, where available, is part of GATE DA Pro. See what Pro includes