Distributed computation and reconfiguration in actively dynamic networks