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

26 行
559B

  1. import cz
  2. from graph import *
  3. import viz
  4. def test_local_complementation():
  5. """ Test that local complementation works as expected """
  6. g, vops = graph()
  7. add_edge(g, 0, 1)
  8. add_edge(g, 0, 2)
  9. add_edge(g, 1, 2)
  10. add_edge(g, 0, 3)
  11. cz.local_complementation(g, vops, 0)
  12. assert has_edge(g, 0, 1)
  13. assert has_edge(g, 0, 2)
  14. assert not has_edge(g, 1, 2)
  15. assert has_edge(g, 3, 2)
  16. assert has_edge(g, 3, 1)
  17. # TODO: test VOP conditions
  18. def test_remove_vop():
  19. """ Test that removing VOPs really works """
  20. pass