Interface FlowAlgorithm.Flow<E>

    • Method Detail

      • getFlow

        default double getFlow​(E edge)
        Returns the flow on the edge
        Parameters:
        edge - an edge from the flow network
        Returns:
        the flow on the edge
      • getFlowMap

        Map<E,​Double> getFlowMap()
        Returns a mapping from the network flow edges to the corresponding flow values. The mapping contains all edges of the flow network regardless of whether there is a non-zero flow on an edge or not.
        Returns:
        a read-only map that defines a feasible flow.