# HG changeset patch # User alpar # Date 1077020869 0 # Node ID 81bf58164f603b3952468bf558867c86bdd87e67 # Parent 6a14044089d92b4ea5cf05cf8f4993cd354fae1f . diff -r 6a14044089d9 -r 81bf58164f60 src/work/alpar/f_ed_ka.h --- a/src/work/alpar/f_ed_ka.h Tue Feb 17 12:26:25 2004 +0000 +++ b/src/work/alpar/f_ed_ka.h Tue Feb 17 12:27:49 2004 +0000 @@ -16,10 +16,10 @@ typename FlowMap::ValueType maxFlow(Graph &G, FlowMap &f, CapacityMap &c, - typename Graph::NodeIt s, - typename Graph::NodeIt t) + typename Graph::EachNodeIt s, + typename Graph::EachNodeIt t) { - typedef typename Graph::NodeIt NodeIt; + typedef typename Graph::EachNodeIt EachNodeIt; typedef typename Graph::EdgeIt EdgeIt; typedef typename Graph::EachEdgeIt EachEdgeIt; typedef typename Graph::OutEdgeIt OutEdgeIt; @@ -32,18 +32,18 @@ for(EachEdgeIt e(G);G.valid(e);G.next(e)) f.set(e,0); - std::queue bfs_queue; + std::queue bfs_queue; typename Graph::NodeMap visited(G); //0: unvisited, //1: reached by a forward edge //2: reached by a backward edge //3: it is node s typename Graph::NodeMap tree(G); - NodeIt gn; //FIXME: it might be too global for some people... + EachNodeIt gn; //FIXME: it might be too global for some people... augment: - for(NodeIt n(G);G.valid(n);G.next(n)) + for(EachNodeIt n(G);G.valid(n);G.next(n)) visited.set(n,0); visited.set(s,3); @@ -55,7 +55,7 @@ while(!bfs_queue.empty() && !visited.get(t)) { - NodeIt n(bfs_queue.front()); + EachNodeIt n(bfs_queue.front()); for(OutEdgeIt e(G,n);G.valid(e);G.next(e)) if(f.get(e) cap(G); readDimacsMaxFlow(std::cin, G, s, t, cap);