Resilient ecological networks: a comparative approach