class_docstr: A flow of a given graph.
  
  This is a simple class used to represent flows returned by
  L{Graph.maxflow}. It has the following attributes:
  
    - C{graph} - the graph on which this flow is defined
  
    - C{value} - the value (capacity) of the flow
  
    - C{flow} - the flow values on each edge. For directed graphs,
      this is simply a list where element M{i} corresponds to the
      flow on edge M{i}. For undirected graphs, the direction of
      the flow is not constrained (since the edges are undirected),
      hence positive flow always means a flow from the smaller vertex
      ID to the larger, while negative flow means a flow from the
      larger vertex ID to the smaller.
  
    - C{cut} - edge IDs in the minimal cut corresponding to
      the flow.
  
    - C{partition} - vertex IDs in the parts created
      after removing edges in the cut
  
    - C{es} - an edge selector restricted to the edges
      in the cut.
  
  This class is usually not instantiated directly, everything
  is taken care of by L{Graph.maxflow}.
  
  Examples:
  
    >>> from igraph import Graph
    >>> g = Graph.Ring(20)
    >>> mf = g.maxflow(0, 10)
    >>> print(mf.value)
    2.0
    >>> mf.es["color"] = "red"
docstr: Initializes the flow.
  
  This should not be called directly, everything is
  taken care of by L{Graph.maxflow}.
docstr_tok: ["Initializes","the","flow",".","This","should","not","be","called","directly",",","everything","is","taken","care","of","by","L","{","Graph.maxflow","}","."]
code: def __init__(self, graph, value, flow, cut, partition):
      """Initializes the flow.
  
      This should not be called directly, everything is
      taken care of by L{Graph.maxflow}.
      """
      super().__init__(graph, value, cut, partition)
      self._flow = flow
  
imports: from igraph._igraph import GraphBase
  from igraph.clustering import VertexClustering
label_desc: Use image node_id 1 to create a new Flow object from inherited base classes: Cut with example: obj = Flow(graph, value, flow, cut, partition)