Multiple choice

Which of the following is not a valid color of node of graph traversal?

  1. Black

  2. Grey

  3. Red

  4. White

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Graph traversal algorithms (like BFS/DFS) typically use White (unvisited), Grey (visiting), and Black (visited) colors. Red is not a standard color in this context.