Dynamics on and of Complex Networks