def test_chimera_layout_basic(self):
     G = dnx.chimera_graph(1, 1, 4)
     pos = dnx.chimera_layout(G)
Ejemplo n.º 2
0
 def test_chimera_layout_nodata(self):
     G = dnx.chimera_graph(2, 2, 4, data=False)
     pos = dnx.chimera_layout(G)
Ejemplo n.º 3
0
 def test_chimera_layout_edgelist_singletile(self):
     G = dnx.chimera_graph(1, 1, 16, data=False)
     pos = dnx.chimera_layout(G.edges())
Ejemplo n.º 4
0
 def test_chimera_layout_coords(self):
     G = dnx.chimera_graph(2, 2, 4, coordinates=True)
     pos = dnx.chimera_layout(G)
Ejemplo n.º 5
0
 def test_chimera_layout_weird_nodata(self):
     G = dnx.chimera_graph(2, 2, 4)
     del G.graph["family"]
     with self.assertRaises(ValueError):
         pos = dnx.chimera_layout(G, dim=1)
Ejemplo n.º 6
0
 def test_chimera_layout_lowdim(self):
     G = dnx.chimera_graph(2, 2, 4)
     with self.assertRaises(ValueError):
         pos = dnx.chimera_layout(G, dim=1)
Ejemplo n.º 7
0
 def test_chimera_layout_center(self):
     G = dnx.chimera_graph(2, 2, 4)
     pos = dnx.chimera_layout(G, center=(5, 5))
     with self.assertRaises(ValueError):
         pos = dnx.chimera_layout(G, center=(5, 5, 5))
Ejemplo n.º 8
0
 def test_chimera_layout_typical(self):
     G = dnx.chimera_graph(2, 2, 4)
     pos = dnx.chimera_layout(G)