code: def set_sink_nodes(self, sink_nodes):
          r
          self.__tnodes = list(sink_nodes)
          
          # set the source-to-node weights (t-weights)
          for tnode in self.__tnodes:
              self.__tweights[tnode] = (0, self.MAX)
docs: r"""
          Set the sink nodes and compute their t-weights.
          
          Parameters
          ----------
          sink_nodes : sequence of integers
              Declare the sink nodes via their ids.
          
          Notes
          -----
          It does not get checked if one of the supplied sink-nodes already has
          a weight assigned (e.g. by passing it to set_source_nodes()). This can
          occur when the foreground- and background-markers cover the same region. In this
          case the order of setting the terminal nodes can affect the graph and therefore
          the graph-cut result.