def test_chimera_layout_basic(self): G = dnx.chimera_graph(1, 1, 4) pos = dnx.chimera_layout(G)
def test_chimera_layout_nodata(self): G = dnx.chimera_graph(2, 2, 4, data=False) pos = dnx.chimera_layout(G)
def test_chimera_layout_edgelist_singletile(self): G = dnx.chimera_graph(1, 1, 16, data=False) pos = dnx.chimera_layout(G.edges())
def test_chimera_layout_coords(self): G = dnx.chimera_graph(2, 2, 4, coordinates=True) pos = dnx.chimera_layout(G)
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)
def test_chimera_layout_lowdim(self): G = dnx.chimera_graph(2, 2, 4) with self.assertRaises(ValueError): pos = dnx.chimera_layout(G, dim=1)
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))
def test_chimera_layout_typical(self): G = dnx.chimera_graph(2, 2, 4) pos = dnx.chimera_layout(G)