animate_simulation#

animate_simulation(network, dt=0.1, show=True)#

Animate the network dynamics with a two-panel view (geometry + force).

Parameters:
  • network (Network) – The network to simulate.

  • dt (float) – Time step used in Network.step.

  • show (bool) – If True, call plt.show() at the end.