Strongly connected components functional