Esempio n. 1
0
 def test_pegasus_layout_ints_nodata(self):
     G = dnx.pegasus_graph(2, data=False)
     pos = dnx.pegasus_layout(G)
Esempio n. 2
0
 def test_pegasus_layout_chim(self):
     G = dnx.pegasus_graph(2, nice_coordinates=True)
     pos = dnx.pegasus_layout(G)
Esempio n. 3
0
 def test_pegasus_layout_ints(self):
     G = dnx.pegasus_graph(2)
     pos = dnx.pegasus_layout(G)
Esempio n. 4
0
 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)
Esempio n. 5
0
 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))
Esempio n. 6
0
 def test_pegasus_layout_crosses(self):
     G = dnx.pegasus_graph(2)
     pos = dnx.pegasus_layout(G, crosses=True)