strongly connected components added for directed graph