def test_chimera_layout_basic(self):
     G = dnx.chimera_graph(1, 1, 4)
     pos = dnx.chimera_layout(G)
예제 #2
0
 def test_chimera_layout_nodata(self):
     G = dnx.chimera_graph(2, 2, 4, data=False)
     pos = dnx.chimera_layout(G)
예제 #3
0
 def test_chimera_layout_edgelist_singletile(self):
     G = dnx.chimera_graph(1, 1, 16, data=False)
     pos = dnx.chimera_layout(G.edges())
예제 #4
0
 def test_chimera_layout_coords(self):
     G = dnx.chimera_graph(2, 2, 4, coordinates=True)
     pos = dnx.chimera_layout(G)
예제 #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)
예제 #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)
예제 #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))
예제 #8
0
 def test_chimera_layout_typical(self):
     G = dnx.chimera_graph(2, 2, 4)
     pos = dnx.chimera_layout(G)