Ecological subsystems via graph theory: the role of strongly connected components