Distributed topology control of dynamic networks