Interface MinimumCostFlowAlgorithm.MinimumCostFlow<E>

Type Parameters:
E - graph edge type
All Superinterfaces:
FlowAlgorithm.Flow<E>
All Known Implementing Classes:
MinimumCostFlowAlgorithm.MinimumCostFlowImpl
Enclosing interface:
MinimumCostFlowAlgorithm<V,E>

public static interface MinimumCostFlowAlgorithm.MinimumCostFlow<E> extends FlowAlgorithm.Flow<E>
Represents a minimum cost flow.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the cost of the flow

    Methods inherited from interface org.jgrapht.alg.interfaces.FlowAlgorithm.Flow

    getFlow, getFlowMap
  • Method Details

    • getCost

      double getCost()
      Returns the cost of the flow
      Returns:
      the cost of the flow