4 #include <list_graph.hh>
7 #include <time_measure.h>
11 int main(int, char **) {
12 typedef ListGraph::NodeIt NodeIt;
13 typedef ListGraph::EachEdgeIt EachEdgeIt;
17 ListGraph::EdgeMap<int> cap(G);
18 readDimacsMaxFlow(std::cin, G, s, t, cap);
20 std::cout << "dijkstra demo ..." << std::endl;
22 double pre_time=currTime();
23 Dijkstra<ListGraph, int> dijkstra_test(G, s, cap);
24 double post_time=currTime();
26 std::cout << "running time: " << post_time-pre_time << " sec"<< std::endl;
30 for ( G.getFirst(e) ; G.valid(e); G.next(e) ) {
33 assert ( dijkstra_test.dist(v) - dijkstra_test.dist(u) <= cap.get(e) );