def test_color_graph(self): g, sim_nodes = createRandomTree(50) six2three_inst = Six2three(g, sim_nodes) six2three_inst.color_graph() for node in sim_nodes: self.failIf(node.memory['color'] >= 3) from visualizations import saveColoredGraph saveColoredGraph(g, sim_nodes, '/home/julka/testowe2')
def test_color_graph(self): g, sim_nodes = createRandomTree(500) c6instance = Color6(g, sim_nodes) c6instance.color_graph() # tak dodatkowo... from visualizations import saveColoredGraph saveColoredGraph(g, sim_nodes, '/home/julka/testowe') for node in sim_nodes: self.failUnless(node.memory['color'] <= 5)