add alogrithm finding component graph of SCCs