Given below is a directed graph:
Apply Kosaraju's algorithm to find strongly connected components of the graph. Print the found components in the field below. The expected output format is the following:
3 1 2
5 6 4
8 7
Here, each line corresponds to one strongly connected component, and the numbers represent the node labels.