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