Anders and Briegel in Python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_layout.py 344B

8 vuotta sitten
8 vuotta sitten
8 vuotta sitten
1234567891011121314151617
  1. from demograph import demograph
  2. #TODO
  3. def _test_nx_convert():
  4. g = demograph()
  5. n = g.to_networkx()
  6. assert len(g.ngbh) == len(n.edge)
  7. assert len(g.vops) == len(n.node)
  8. def _test_layout():
  9. g = demograph()
  10. g.layout()
  11. assert len(g.meta) == len(g.vops)
  12. assert "pos" in g.meta[0]
  13. assert "x" in g.meta[0]["pos"]