Spot a component
Warm-up · Multiple choice · about 3 min
Which set of nodes is exactly one strongly connected component of this directed graph?
Example 1
Input:
{"edges":[["A","B"],["B","A"],["B","C"],["C","D"],["D","C"],["D","E"]]}
Output:
{C, D}
C and D reach each other through C → D → C.
Learn the idea first: Strongly connected components: Kosaraju and Tarjan, a visual lesson.
More Strongly connected components: Kosaraju and Tarjan problems
- Low-link values Warm-up
- Finishing order Standard
- Count SCCs Standard
- Condensation graph Standard