(self)
Switch the right and left nodes changing the edge direction. Doesn't affect ternary edges.
Switch the right and left nodes changing the edge direction. Doesn't affect ternary edges.
Switch the right and left nodes changing the edge direction . Doesn t affect ternary edges .
def invert(self):
        """
        Switch the right and left nodes changing the edge direction. Doesn't affect ternary edges.
        """
        if self.type == 'binary':
            self.leftentityid, self.rightentityid = self.rightentityid, self.leftentityid
def invert ( self ) : if self . type == 'binary' : self . leftentityid , self . rightentityid = self . rightentityid , self . leftentityid