Пример #1
0
 def test_relabeling(self):
     G = nx.Graph([(0, 1)])
     assert g6.to_graph6_bytes(G) == b">>graph6<<A_\n"
     G = nx.Graph([(1, 2)])
     assert g6.to_graph6_bytes(G) == b">>graph6<<A_\n"
     G = nx.Graph([(1, 42)])
     assert g6.to_graph6_bytes(G) == b">>graph6<<A_\n"
Пример #2
0
 def test_relabeling(self):
     G = nx.Graph([(0,1)])
     assert_equal(g6.to_graph6_bytes(G), b'>>graph6<<A_\n')
     G = nx.Graph([(1,2)])
     assert_equal(g6.to_graph6_bytes(G), b'>>graph6<<A_\n')
     G = nx.Graph([(1,42)])
     assert_equal(g6.to_graph6_bytes(G), b'>>graph6<<A_\n')