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

19 行
346B

  1. from abp import GraphState
  2. from abp import clifford
  3. from demograph import demograph
  4. import time
  5. import json
  6. def test_json_basic():
  7. """ Test that we can export to JSON """
  8. g = demograph()
  9. js = g.to_json()
  10. assert "edges" in js
  11. assert "nodes" in js
  12. e = GraphState()
  13. assert e != g
  14. e.from_json(js)
  15. assert e == g