jacint@173: #include jacint@173: #include jacint@173: jacint@173: #include jacint@173: #include jacint@173: #include jacint@173: #include jacint@173: jacint@173: #include jacint@173: #include jacint@173: jacint@173: using namespace hugo; jacint@173: jacint@173: int main(int, char **) { jacint@173: typedef ListGraph::NodeIt NodeIt; jacint@173: jacint@173: ListGraph G; jacint@173: NodeIt s, t; jacint@173: ListGraph::EdgeMap cap(G); jacint@173: readDimacsMaxFlow(std::cin, G, s, t, cap); jacint@173: jacint@173: std::cout << "prim demo ..." << std::endl; jacint@173: jacint@173: double pre_time=currTime(); jacint@173: Prim > > prim_test(G, cap); jacint@173: prim_test.run(); jacint@173: double post_time=currTime(); jacint@173: jacint@173: std::cout << "running time with fib_heap: " jacint@173: << post_time-pre_time << " sec"<< std::endl; jacint@173: jacint@173: pre_time=currTime(); jacint@173: Prim > > prim_test2(G, cap); jacint@173: prim_test2.run(); jacint@173: post_time=currTime(); jacint@173: jacint@173: std::cout << "running time with bin_heap: " jacint@173: << post_time-pre_time << " sec"<< std::endl; jacint@173: jacint@173: std::cout<<"A minimalis feszitofa sulya fib kupaccal: "<< prim_test.weight() <