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