Anders and Briegel in Python
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

16 行
375B

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