Gradient LabSign up free

Home / GATE DA / 2025 / Q.58

GATE DA 2025, Q.58: Which edges cannot exist given three shortest paths

Data structures and algorithmsShortest paths2 marksMSQ (more than one correct)

The question

G is a simple undirected graph on a to h. a − b − c − d is a shortest a–d path, e − f − g − h is a shortest e–h path, and a − f − c − h is a shortest a–h path. Which are NOT edges of G? (A) (b, d). (B) (b, g). (C) (b, h). (D) (e, g).

This question uses a figure in the official paper. Eight vertices drawn in two rows (a b c d / e f g h); edges as implied by the three paths. See the official paper.

Checking your access…

Source: official GATE DA 2025 question paper and answer key (IIT Roorkee). The question is lightly reworded; every number and option is kept.