Anders and Briegel in Python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 8 години
преди 8 години
преди 8 години
преди 8 години
123456789101112
  1. from abp import VisibleGraphState
  2. import numpy as np
  3. s = VisibleGraphState()
  4. for i in range(200):
  5. x = 10*np.cos(np.pi*2*i/60)
  6. y = 10*np.sin(np.pi*2*i/60)
  7. s.add_node(i, {"position": (x, y, i/50.)})
  8. s.act_local_rotation(i, "hadamard")
  9. for i in range(200-1):
  10. s.act_cz(i, i+1)
  11. s.update()