It cannot find all the cycles as long as it runs in O(V + E) (Polynomial time). If it could, it could solve hamiltonian cycle problem in polynomial time but this problem is NP-hard.
Find all cycles in the directed graph?
-
03-10-2022 - |
Frage
Tarjan's strongly connected components algorithm can only find fundamental cycles or all cycles that are in the graph ?
Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow