class_docstr: A graph representation that works directly with the maxflow.GraphDouble graph as
  base. It is therefore less flexible as graph.Graph, but leads to lower memory
  requirements.
  
  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 0 and be
  continuous. This is not actually checked, so be careful.
  
  This wrapper tries to catch the most usual exception that can occur in the
  underlying C++ implementation and to convert them into catchable and meaningful
  error messages.
docstr: Set all t-weights at once.
  
  Parameters
  ----------
  tweights : iterable
      Containing a pair of numeric values for each of the graphs nodes.
  
  Notes
  -----
  Since this method overrides already existing t-weights, it is strongly
  recommended to run `set_source_nodes` and `set_sink_nodes` after the
  last call to this method.
  
  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: ["Set","all","t-weights","at","once",".","Parameters","--","--","--","--","--","tweights",":","iterable","Containing","a","pair","of","numeric","values","for","each","of","the","graphs","nodes",".","Notes","--","--","-","Since","this","method","overrides","already","existing","t-weights",",","it","is","strongly","recommended","to","run","`","set_source_nodes","`","and","`","set_sink_nodes","`","after","the","last","call","to","this","method",".","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 set_tweights_all(self, tweights):
      r"""
      Set all t-weights at once.
  
      Parameters
      ----------
      tweights : iterable
          Containing a pair of numeric values for each of the graphs nodes.
  
      Notes
      -----
      Since this method overrides already existing t-weights, it is strongly
      recommended to run `set_source_nodes` and `set_sink_nodes` after the
      last call to this method.
  
      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.
      """
      for node, (twsource, twsink) in enumerate(tweights):
          self.set_tweight(node, twsource, twsink)
  
imports: from .maxflow import GraphDouble, GraphFloat
label_desc: Use image node_id 8 for calling the GCGraph obj's underlying member method code with example usage: obj.set_tweights_all(tweights) without return types