def __init__(self, sourceIndex, parent, T, costs, vertices):
     Tree.__init__(self, sourceIndex, parent, T, vertices)
     self.costs = costs
Example #2
0
 def __init__(self, sourceIndex, parent, T, costs, vertices):
     Tree.__init__(self, sourceIndex, parent, T, vertices)
     self.costs = costs
 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 
Example #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