Master Mathematics.

Programming · Graph Algorithms · Problem 2

Valid topological orders

Consider the directed acyclic graph with edges , , , , , . Which of the following is/are valid vertex orderings from a topological sort of the DAG?

  1. (A) P Q R S T U V
  2. (B) P R Q V S U T
  3. (C) P Q R S V U T
  4. (D) P R Q S V T U

Source: GATE DA