示例#1
0
 def __init__(self, sourceIndex, parent, T, costs, vertices):
     Tree.__init__(self, sourceIndex, parent, T, vertices)
     self.costs = costs
示例#2
0
 def __init__(self, sourceIndex, parent, T, costs, vertices):
     Tree.__init__(self, sourceIndex, parent, T, vertices)
     self.costs = costs
示例#3
0
 def __init__(self, startingIndex, parent, T, 
              totalWeight, vertices):
     Tree.__init__(self, startingIndex, parent, T, vertices)
     # Total weight of all edges in the tree
     self.totalWeight = totalWeight 
示例#4
0
 def __init__(self, startingIndex, parent, T, totalWeight, vertices):
     Tree.__init__(self, startingIndex, parent, T, vertices)
     # Total weight of all edges in the tree
     self.totalWeight = totalWeight