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: Adds t-weights to the current collection of t-weights, overwriting already
  existing ones.
  
  Parameters
  ----------
  tweights : dict
      A dictionary with node_ids as keys and (weight-to-source, weight-to-sink) tuples as values.
  
  Notes
  -----
  The weights for nodes directly connected to either the source or the sink
  are best set using `set_source_nodes` or `set_sink_nodes` to ensure
  consistency of their maximum values.
docstr_tok: ["Adds","t-weights","to","the","current","collection","of","t-weights",",","overwriting","already","existing","ones",".","Parameters","--","--","--","--","--","tweights",":","dict","A","dictionary","with","node_ids","as","keys","and","(","weight-to-source",",","weight-to-sink",")","tuples","as","values",".","Notes","--","--","-","The","weights","for","nodes","directly","connected","to","either","the","source","or","the","sink","are","best","set","using","`","set_source_nodes","`","or","`","set_sink_nodes","`","to","ensure","consistency","of","their","maximum","values","."]
code: def add_tweights(self, tweights):
      r"""
      Adds t-weights to the current collection of t-weights, overwriting already
      existing ones.
  
      Parameters
      ----------
      tweights : dict
          A dictionary with node_ids as keys and (weight-to-source, weight-to-sink) tuples as values.
  
      Notes
      -----
      The weights for nodes directly connected to either the source or the sink
      are best set using `set_source_nodes` or `set_sink_nodes` to ensure
      consistency of their maximum values.
      """
      self.__tweights.update(tweights)
  
imports: from .maxflow import GraphDouble, GraphFloat
label_desc: Use image node_id 6 for calling the Graph obj's underlying member method code with example usage: obj.add_tweights(tweights) without return types