CodeCookbook
All topics
Graphs
1 of 11 · 0/— correct
Shuffle
Reset
multiple choice
hard
Which traversal can be used to detect a cycle in a directed graph?
Dijkstra's algorithm
Kruskal's algorithm
DFS with three node colors (white/gray/black)
BFS only
← Previous
Next