Class MinCostFlow

    • Constructor Detail

      • MinCostFlow

        protected MinCostFlow​(long cPtr,
                              boolean cMemoryOwn)
      • MinCostFlow

        public MinCostFlow​(int reserve_num_nodes,
                           int reserve_num_arcs)
      • MinCostFlow

        public MinCostFlow​(int reserve_num_nodes)
      • MinCostFlow

        public MinCostFlow()
    • Method Detail

      • getCPtr

        protected static long getCPtr​(MinCostFlow obj)
      • swigRelease

        protected static long swigRelease​(MinCostFlow obj)
      • addArcWithCapacityAndUnitCost

        public int addArcWithCapacityAndUnitCost​(int tail,
                                                 int head,
                                                 long capacity,
                                                 long unit_cost)
      • setNodeSupply

        public void setNodeSupply​(int node,
                                  long supply)
      • getOptimalCost

        public long getOptimalCost()
      • getMaximumFlow

        public long getMaximumFlow()
      • getFlow

        public long getFlow​(int arc)
      • getNumNodes

        public int getNumNodes()
      • getNumArcs

        public int getNumArcs()
      • getTail

        public int getTail​(int arc)
      • getHead

        public int getHead​(int arc)
      • getCapacity

        public long getCapacity​(int arc)
      • getSupply

        public long getSupply​(int node)
      • getUnitCost

        public long getUnitCost​(int arc)