test/heap_test.cc
changeset 1751 a2a454f1232d
parent 1728 eb8bb91ba9e2
child 1845 f8bbfed86036
equal deleted inserted replaced
1:2c940be55bc5 2:176299db7854
    53   else f_name = ".";
    53   else f_name = ".";
    54   f_name += "/dijkstra_test.lgf";
    54   f_name += "/dijkstra_test.lgf";
    55   
    55   
    56   std::ifstream input(f_name.c_str());
    56   std::ifstream input(f_name.c_str());
    57   check(input, "Input file '" << f_name << "' not found.");
    57   check(input, "Input file '" << f_name << "' not found.");
    58   readGraph(input, graph, length, start);  
    58   GraphReader<Graph>(input, graph).
       
    59     readEdgeMap("length", length).
       
    60     readNode("source", start).
       
    61     run();  
    59  
    62  
    60   {
    63   {
    61     std::cerr << "Checking Bin Heap" << std::endl;
    64     std::cerr << "Checking Bin Heap" << std::endl;
    62 
    65 
    63     typedef BinHeap<Item, Prio, ItemIntMap> IntHeap;
    66     typedef BinHeap<Item, Prio, ItemIntMap> IntHeap;