Anders and Briegel in Python
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

23 行
387B

  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 "adj" in js
  11. assert "node" in js
  12. e = GraphState()
  13. #TODO
  14. def _test_to_json():
  15. """ Nah """
  16. assert e != g
  17. e.from_json(js)
  18. assert e == g