def test_graph_to_atm(self): assert self.N == ATMConverter.from_graph(self.H)
def simulate(self, x, T=None, S=None): A = ATMConverter.from_graph(self.G) tree = AdvancedSimulator.simulate(A, x, T, S) if tree is not None: return tree.time(), tree.space(), TreeConverter.to_graphics(tree) return None
def test_atm_to_graph(self): assert self.H == ATMConverter.to_graph(self.N)