Пример #1
0
 def __init__(self,
              mtg1,
              mtg2,
              scale1,
              scale2,
              cost,
              tabletype=0,
              root1=None,
              root2=None):
     # mtg wrapper
     MtgMatchingWrapper.__init__(self, mtg1, mtg2, scale1, scale2, cost,
                                 tabletype, root1, root2)
     # creation of Matching
     ExtMatching.__init__(self, self.tree1, self.tree2, self.costwrapper,
                          tabletype)
 def __native_get_dbt(self,a,b):
     # to be redefined to point toward actual getDBT of cpp implementation
     return ExtMatching.getDBT(self,a,b)
 def __init__(self,mtg1,mtg2,scale1,scale2,cost,tabletype = 0,root1=None,root2=None):
     # mtg wrapper
     MtgMatchingWrapper.__init__(self,mtg1,mtg2,scale1,scale2,cost,tabletype,root1,root2)
     # creation of Matching
     ExtMatching.__init__(self,self.tree1,self.tree2,self.costwrapper,tabletype)
Пример #4
0
 def __native_get_dbt(self, a, b):
     # to be redefined to point toward actual getDBT of cpp implementation
     return ExtMatching.getDBT(self, a, b)