Network Automata: Coupling Structure and Function in Dynamic Networks