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.
|
- from demograph import demograph
-
- def test_nx_convert():
- g = demograph()
- n = g.to_networkx()
- assert len(g.ngbh) == len(n.edge)
- assert len(g.vops) == len(n.node)
-
- def test_layout():
- g = demograph()
- g.layout()
- assert len(g.meta) == len(g.vops)
- assert "pos" in g.meta[0]
- assert "x" in g.meta[0]["pos"]
|