Online design of dynamic networks