Resilience analysis of time-varying networks with addition and deletion of nodes