Examveda

What is a topological sort in a directed graph?

A. A minimum spanning tree of the graph.

B. A breadth-first search traversal of the graph.

C. A depth-first search traversal of the graph.

D. A linear ordering of vertices such that for every directed edge u -> v, vertex u comes before v.

Answer: Option D


This Question Belongs to Data Structure >> Graphs

Join The Discussion

Related Questions on Graphs

What is a cycle in a graph?

A. A path that starts and ends at the same vertex with no other repetitions.

B. A path that includes all vertices exactly once.

C. A path with no edges.

D. A complete traversal of all vertices.