In a directed graph, what the algorithm can find out all cycles that contain a specific vertex v?
Asked
Active
Viewed 326 times
1 Answers
1
Tarjan's algorithm for strongly connected components will give you the SCC, to which that specific vertex belongs. Now you can run a backtracking algorithm on the SCC to find all the simple cycles, which start and end on v
.

chill
- 16,470
- 2
- 40
- 44