Resilient and adaptive networked systems