Anders and Briegel in Python
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

test_cz.py 535B

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