Strongly connected components kosaraju's algorithm

in output at 7.49 why the color of node 1,2,3 is 2, it should be 1 right? since we are passing col =1 in 1st dfs_reverse call. Therefore the color of nodes 1 2 3 should be 1 and 4 5 6 should be 2. Am I missing something?

Hey @SWIFTY
Coloring is happening in reverse dfs which is working from n to 1
So the colors assigned are right

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.