class_docstr: Represents a graph suitable for further processing with the graphcut package.
  
  The graph contains nodes, edges (directed) between the nodes (n-edges), edges
  between two terminals (called source and sink) and the nodes (t-edges), and a
  weight for each edge. 
  
  Notes
  -----
  The node-ids used by the graph are assumed to start with 1 and be
  continuous. This is not actually checked, except when calling the
  inconsistent() method, so be careful.
docstr: 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.
docstr_tok: ["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","."]
code: def set_sink_nodes(self, sink_nodes):
      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.
      """
      self.__tnodes = list(sink_nodes)
  
      # set the source-to-node weights (t-weights)
      for tnode in self.__tnodes:
          self.__tweights[tnode] = (0, self.MAX)
  
imports: from .maxflow import GraphDouble, GraphFloat
label_desc: Use image node_id 4 for calling the Graph obj's underlying member method code with example usage: obj.set_sink_nodes(sink_nodes) without return types