COIN-OR::LEMON - Graph Library

Changeset 173:de9849252e78 in lemon-0.x for src/work/jacint/dijkstra.cc


Ignore:
Timestamp:
03/12/04 00:31:13 (16 years ago)
Author:
jacint
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@246
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/jacint/dijkstra.cc

    r170 r173  
    6767           dijkstra_test.dist(u) - dijkstra_test.dist(v) != cap.get(e) )
    6868        {
    69           std::cout<<"Hibas fael a fibonaccis Dijkstraban!"<<std::endl;
     69          std::cout<<"Hibas fael a fibonaccis Dijkstraban: "<<
     70            dijkstra_test.dist(u) - dijkstra_test.dist(v)- cap.get(e)<<std::endl;
    7071          ++hiba_fib;
    7172        }
     
    7374           dijkstra_test2.dist(u) - dijkstra_test2.dist(v) != cap.get(e) )
    7475        {
    75           std::cout<<"Hibas fael a binarisos Dijkstraban!"<<std::endl;
     76          std::cout<<"Hibas fael a binarisos Dijkstraban: "<<
     77            dijkstra_test2.dist(u) - dijkstra_test2.dist(v)- cap.get(e)<<std::endl;
    7678          ++hiba_bin;
    7779        }
    7880    }
    79   }
     81 
     82    if ( dijkstra_test.dist(u) != dijkstra_test2.dist(u) )
     83      std::cout << "Nem egyezik meg a tavolsag!"<<std::endl;
     84
     85
     86 }
    8087
    8188  std::cout << "Hibas elek szama a fibonaccis Dijkstraban: "
     
    8592            << hiba_bin << " a " << G.edgeNum() <<"-bol."<< std::endl;
    8693
     94
     95
     96
    8797  return 0;
    8898}
Note: See TracChangeset for help on using the changeset viewer.