COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
08/19/13 22:35:54 (6 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Fix division by zero error in case of empty graph (#474)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/network_simplex.h

    r991 r1317  
    930930        _node_id[n] = i;
    931931      }
    932       if (_arc_mixing) {
     932      if (_arc_mixing && _node_num > 1) {
    933933        // Store the arcs in a mixed order
    934934        const int skip = std::max(_arc_num / _node_num, 3);
Note: See TracChangeset for help on using the changeset viewer.