Examveda

Which of the following algorithms is used to detect cycles in a directed graph?

A. Tarjan's Algorithm

B. Kruskal's Algorithm

C. Prim's Algorithm

D. Dijkstra's Algorithm

Answer: Option A


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.