Class FlowAlgorithm.FlowImpl<E>

    • Constructor Summary

      Constructors 
      Constructor Description
      FlowImpl​(java.util.Map<E,​java.lang.Double> flowMap)
      Constructs a new flow
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<E,​java.lang.Double> getFlowMap()
      Returns a mapping from the network flow edges to the corresponding flow values.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FlowImpl

        public FlowImpl​(java.util.Map<E,​java.lang.Double> flowMap)
        Constructs a new flow
        Parameters:
        flowMap - the mapping defining the flow on the network
    • Method Detail

      • getFlowMap

        public java.util.Map<E,​java.lang.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.
        Specified by:
        getFlowMap in interface FlowAlgorithm.Flow<E>
        Returns:
        a read-only map that defines a feasible flow.