I have this graph. The SCCs in this Graph are {a, b, e}, {d, g}, and {c, d, h}. But the cycles in this graph are the same components, right?
So what exactly is the difference between SCCs and directed cycles? Do they only differ in specific cases?
I have this graph. The SCCs in this Graph are {a, b, e}, {d, g}, and {c, d, h}. But the cycles in this graph are the same components, right?
So what exactly is the difference between SCCs and directed cycles? Do they only differ in specific cases?

In a directed graph
G(V,E):wis reachable from a vertexvif there exists a directed path fromvtow.vandwinGthere is a directed path fromvtowand a directed path fromwtov.vandwin the strongly connected sub-graphG'(V',E')whereV' ⊂ VandE' ⊂ Ethere is a directed path fromvtowand a directed path fromwtov.The difference is that:
If you have the strongly connected component:
Then there is a directed path
C → D → A → Band a directed pathB → D → A → Cbut there is no directed cycle that contains bothBandCas the edgeD → Awould have to be visited twice in the cycle.Additionally, there is another (technical) difference that if the directed cycle visits all the vertices then it is a strongly connected directed graph and not a strongly connected component (as a component is a strict sub-graph).