Dynamical Systems on Networks