program for strongly connected component,  creating just graph for now.