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.

24 lines
511B

  1. from abp.viz import VisibleGraphState
  2. import numpy as np
  3. import time
  4. s = VisibleGraphState()
  5. for i in range(100):
  6. s.add_node(i, {"position": {"x":i, "y":i, "z":i}});
  7. s.update()
  8. time.sleep(.5)
  9. #for i in range(200):
  10. #x = 10*np.cos(np.pi*2*i/60)
  11. #y = 10*np.sin(np.pi*2*i/60)
  12. #s.add_node(i, {"position": {"x":round(x, 2), "y":round(y, 2), "z":round(i/50., 2)}})
  13. #s.act_local_rotation(i, "hadamard")
  14. #for i in range(200-1):
  15. #s.act_cz(i, i+1)
  16. #time.sleep(.3)
  17. #s.update()