COIN-OR::LEMON - Graph Library

Changeset 887:072ec8120958 in lemon


Ignore:
Timestamp:
11/13/09 00:39:28 (15 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Rebase:
63666432363933386438383538323961626233656333396265363765343030653336623534326538
Message:

Small bug fixes (#180)

Location:
lemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/capacity_scaling.h

    r879 r887  
    682682    // Initialize the algorithm
    683683    ProblemType init() {
    684       if (_node_num == 0) return INFEASIBLE;
     684      if (_node_num <= 1) return INFEASIBLE;
    685685
    686686      // Check the sum of supply values
  • lemon/cost_scaling.h

    r886 r887  
    713713    // Initialize the algorithm
    714714    ProblemType init() {
    715       if (_res_node_num == 0) return INFEASIBLE;
     715      if (_res_node_num <= 1) return INFEASIBLE;
    716716
    717717      // Check the sum of supply values
Note: See TracChangeset for help on using the changeset viewer.