def getDDStructure(self): """Returns the type DD structure corresponding to this cobordism.""" all_idems = self._getIdems() all_chords = self._getChords() all_chords = [self._StrandsFromChords(chord1, chord2) for chord1, chord2 in all_chords] alg1 = self.start_pmc.getAlgebra(mult_one = True) alg2 = self.end_pmc.getAlgebra(mult_one = True) ddstr = DDStrFromChords(alg1, alg2, all_idems, all_chords) assert ddstr.testDelta() return ddstr
def getDDStructure(self): """Returns the type DD structure corresponding to this dehn twist.""" self.all_idems = self._getIdems() self.all_chords = [] for chord_type in self._PChords: chord_type(self) if self.orientation == NEG: self.all_chords = [(r.opp(), l.opp()) for l, r in self.all_chords] # mult_one = False case is more complicated alg1 = self.start_pmc.getAlgebra(mult_one = True) alg2 = alg1 ddstr = DDStrFromChords(alg1, alg2, self.all_idems, self.all_chords) assert ddstr.testDelta() return ddstr
def getDDStructure(self): """Returns the type DD structure corresponding to this dehn twist.""" all_idems = self._getIdems() all_chords = [] for chord_type in self._getChordsList(): all_chords.extend(chord_type()) all_chords = [self._StrandsFromChords(chord1, chord2) for chord1, chord2 in all_chords] alg1 = self.start_pmc.getAlgebra(mult_one = True) alg2 = alg1 ddstr = DDStrFromChords(alg1, alg2, all_idems, all_chords) assert ddstr.testDelta() return ddstr