def __setitem__(self, v, val):
     try:
         oldVal = VertexLabeling.__getitem__(self, v)
         if oldVal != None:
             if self.leaveColors == None or not (self.Animator.GetEdgeColor(oldVal,v) in self.leaveColors):
                 self.Animator.SetEdgeColor(oldVal,v,"grey")
     except:
         pass 
     if val != None:
         try:
             if self.leaveColors == None or not (self.Animator.GetEdgeColor(val,v) in self.leaveColors):
                 self.Animator.SetEdgeColor(val,v,self.predColor)
         except:
             pass
     VertexLabeling.__setitem__(self, v, val)
Пример #2
0
 def __setitem__(self, v, val):
     try:
         oldVal = VertexLabeling.__getitem__(self, v)
         if oldVal != None:
             if not self.Animator.GetEdgeColor(oldVal, v) in self.ignoreColors:
                 self.Animator.SetEdgeColor(oldVal, v, 'grey')
     except:
         pass 
     if val != None:
         try:
             if not self.Animator.GetEdgeColor(val, v) in self.ignoreColors:
                 self.Animator.SetEdgeColor(val, v, self.predColor)
         except:
             pass
     VertexLabeling.__setitem__(self, v, val)
Пример #3
0
 def __setitem__(self, v, val):
     try:
         oldVal = VertexLabeling.__getitem__(self, v)
         if oldVal != None:
             if not self.Animator.GetEdgeColor(oldVal,
                                               v) in self.ignoreColors:
                 self.Animator.SetEdgeColor(oldVal, v, 'grey')
     except:
         pass
     if val != None:
         try:
             if not self.Animator.GetEdgeColor(val, v) in self.ignoreColors:
                 self.Animator.SetEdgeColor(val, v, self.predColor)
         except:
             pass
     VertexLabeling.__setitem__(self, v, val)
Пример #4
0
 def __setitem__(self, v, val):
     try:
         oldVal = VertexLabeling.__getitem__(self, v)
         if oldVal != None:
             if self.leaveColors == None or not (self.Animator.GetEdgeColor(
                     oldVal, v) in self.leaveColors):
                 self.Animator.SetEdgeColor(oldVal, v, "grey")
     except:
         pass
     if val != None:
         try:
             if self.leaveColors == None or not (self.Animator.GetEdgeColor(
                     val, v) in self.leaveColors):
                 self.Animator.SetEdgeColor(val, v, self.predColor)
         except:
             pass
     VertexLabeling.__setitem__(self, v, val)