Anders and Briegel in Python
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

profile_viz.py 305B

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()