.
4 #include <list_graph.hh>
7 #include <time_measure.h>
12 int main(int, char **) {
14 typedef ListGraph Graph;
16 typedef Graph::Node Node;
17 typedef Graph::EdgeIt EdgeIt;
21 Graph::EdgeMap<int> cap(G);
22 readDimacsMaxFlow(std::cin, G, s, t, cap);
25 std::cout << "Testing dijkstra.h with Fibonacci-heap
26 implementation fib_heap.h ..." << std::endl;
29 // , BinHeap<ListGraph::NodeIt, int, ListGraph::NodeMap<int> >
30 > dijkstra_test(G, s, cap);
33 std::cout << "elapsed time: " << ts << std::endl;
34 double post_time=currTime();
36 std::cout << "running time: " << post_time-pre_time << " sec"<< std::endl;
44 for ( G.getFirst(e) ; G.valid(e); G.next(e) ) {
48 if ( dijkstra_test.dist(v) - dijkstra_test.dist(u) > cap.get(e) ) {
49 std::cout<<"Hiba: "<<edge<<": "<<dijkstra_test.dist(v) - dijkstra_test.dist(u) - cap.get(e)<<std::endl;
54 std::cout << "Osszhibas el: " << hiba << " osszel: " << G.edgeNum() << std::endl;