Esempio n. 1
0
 def test_graph_to_atm(self):
     assert self.N == ATMConverter.from_graph(self.H)
Esempio n. 2
0
 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
Esempio n. 3
0
 def test_atm_to_graph(self):
     assert self.H == ATMConverter.to_graph(self.N)