Beispiel #1
0
 def __init__(self):
     self.parent = self
     self.rank = 0
     self.color = 0
     self.comp = LKlist((self))
     self.comp.clear()
     self.size = 0
     self.x = 0
     self.y = 0
Beispiel #2
0
 def __init__(self):
     self.parent = self
     #self.value = value
     self.rank = 0
     self.color=rf(0)
     self.comp = LKlist((self))
     self.comp.clear()
     self.lib=LKlist((self))
     self.freed=None
     self.x=0
     self.y=0
Beispiel #3
0
class NodeUF(object):
    def __init__(self):
        self.parent = self
        self.rank = 0
        self.color=0
        self.comp = LKlist((self))
        self.comp.clear()
        self.size=0
        self.x=0
        self.y=0
    def __str__(self):
        return self.rank
Beispiel #4
0
class NodeUF(object):
    def __init__(self):
        self.parent = self
        self.rank = 0
        self.color = 0
        self.comp = LKlist((self))
        self.comp.clear()
        self.size = 0
        self.x = 0
        self.y = 0

    def __str__(self):
        return self.rank
Beispiel #5
0
def Destroy(x):
    temp=Find(x).comp.first
    temp.value.color.set(0)
    temp.value.rank=0
    temp.value.parent=temp.value
    temp.value.comp=LKlist(temp.value)
    while(temp.next !=None):
        temp.next.value.color.set(0)
        temp.next.value.rank=0
        temp.next.value.parent=temp.next.value
        temp.next.value.comp=LKlist(temp.next.value)
        temp2=temp.next
        temp.next=None
        temp=temp2
Beispiel #6
0
class NodeUF(object):
    def __init__(self):
        self.parent = self
        #self.value = value
        self.rank = 0
        self.color=rf(0)
        self.comp = LKlist((self))
        self.comp.clear()
        self.lib=LKlist((self))
        self.freed=None
        self.x=0
        self.y=0
    def __str__(self):
        return self.rank
Beispiel #7
0
 def __init__(self):
     self.parent = self
     self.rank = 0
     self.color=0
     self.comp = LKlist((self))
     self.comp.clear()
     self.size=0
     self.x=0
     self.y=0