def __init__(self,
              board_coverage,
              current_point,
              num_bends=0,
              direction=None,
              steps=0,
              parent=None,
              cost=0):
     Search_Node.__init__(
         self, (board_coverage, current_point, num_bends, direction, steps),
         parent, cost)
 def __init__(self, proto_board, loc_pairs, parent=None, cost=0,
     filter_wire_lengths=False):
   """
   |proto_board|: current Proto_Board in the search.
   |loc_pairs|: a tuple of tuples of the form (loc_1, loc_2, resistor, label),
       where loc_1 and loc_2 are to be connected and resistor indicates
       whether there needs to be a resistor between them. label gives the label
       for the path of wires connected to loc_1.
   |parent|: this node's parent node, or None if this is the root node.
   |cost|: the cost of getting from the root node to this node.
   """
   Search_Node.__init__(self, (proto_board, loc_pairs), parent, cost)
   self.filter_wire_lengths = filter_wire_lengths
 def __init__(self,
              proto_board,
              loc_pairs,
              parent=None,
              cost=0,
              filter_wire_lengths=False):
     """
 |proto_board|: current Proto_Board in the search.
 |loc_pairs|: a tuple of tuples of the form (loc_1, loc_2, resistor, label),
     where loc_1 and loc_2 are to be connected and resistor indicates
     whether there needs to be a resistor between them. label gives the label
     for the path of wires connected to loc_1.
 |parent|: this node's parent node, or None if this is the root node.
 |cost|: the cost of getting from the root node to this node.
 """
     Search_Node.__init__(self, (proto_board, loc_pairs), parent, cost)
     self.filter_wire_lengths = filter_wire_lengths
 def __init__(self, board_coverage, current_point, num_bends=0, direction=None,
     steps=0, parent=None, cost=0):
   Search_Node.__init__(self, (board_coverage, current_point, num_bends,
       direction, steps), parent, cost)