def test_pegasus_layout_ints_nodata(self): G = dnx.pegasus_graph(2, data=False) pos = dnx.pegasus_layout(G)
def test_pegasus_layout_chim(self): G = dnx.pegasus_graph(2, nice_coordinates=True) pos = dnx.pegasus_layout(G)
def test_pegasus_layout_ints(self): G = dnx.pegasus_graph(2) pos = dnx.pegasus_layout(G)
def test_pegasus_layout_ints_noinfo(self): G = dnx.pegasus_graph(2, data=False) badG = nx.Graph() badG.add_edges_from(G.edges()) with self.assertRaises(ValueError): pos = dnx.pegasus_layout(badG)
def test_pegasus_layout_ints_badcenter(self): G = dnx.pegasus_graph(2, data=False) with self.assertRaises(ValueError): pos = dnx.pegasus_layout(G, center=(0, 0, 0, 0))
def test_pegasus_layout_crosses(self): G = dnx.pegasus_graph(2) pos = dnx.pegasus_layout(G, crosses=True)