write API of SCCs. (algorithm description)