COIN-OR::LEMON - Graph Library

Custom Query (545 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (145 - 147 of 545)

Ticket Resolution Summary Owner Reporter
#196 fixed Bug fix in variant.h + hide doc Peter Kovacs Peter Kovacs
#197 fixed MaxWeightedMatching and MaxWeightedPerfectMatcing crash Balazs Dezso Philip.Waldron
Description

The following code crashes with the attach .lgf file, using either MaxWeightedMatching or MaxWeightedPerfectMatching

#include <lemon/max_matching.h>
#include <lemon/smart_graph.h>
#include <lemon/lgf_reader.h>

using namespace lemon;

int main() 
{
  typedef SmartGraph Graph;
  Graph g;
  Graph::EdgeMap<int> w(g);
  
  GraphReader<Graph>(g,std::cin).edgeMap("weight",w).run();

  MaxWeightedMatching<Graph> mwm(g,w);
  //MaxWeightedPerfectMatching<Graph> mwm(g,w);

  mwm.run();
#199 fixed std::isnan() is not available with all compiler Alpar Juttner Alpar Juttner
Description

std::isnan() is not provided by some compiler, such as VS2005 and icc-10.1.

We should provide an own implementation like this:

    inline bool isnan(double v)
    {
      return v!=v;
    }

Of course, this function can optionally use std::isnan() if it is available.

Note: See TracQuery for help on using queries.