# HG changeset patch # User alpar # Date 1076948869 0 # Node ID 629b9ca9184b9dd5f19c29c147edec83baea8a3b # Parent c7d834680e9b6d32855345debf26c21e4df4b887 Several bugfixes diff -r c7d834680e9b -r 629b9ca9184b src/work/alpar/f_ed_ka.h --- a/src/work/alpar/f_ed_ka.h Mon Feb 16 16:21:22 2004 +0000 +++ b/src/work/alpar/f_ed_ka.h Mon Feb 16 16:27:49 2004 +0000 @@ -75,32 +75,32 @@ if(!visited.get(t)) return flow_val; // Augmenting value computation - aug_val = visited.get(t)==2 ? + aug_val = visited.get(t)==1 ? c.get(tree.get(t))-f.get(tree.get(t)) : f.get(tree.get(t)); //FIXME: I would need 'G.opposite(e,n)' - gn = visited.get(t)==2 ? G.from(tree.get(t)) : G.to(tree.get(t)); - while(gn!=s) if(visited.get(gn)==2) + gn = visited.get(t)==1 ? G.tail(tree.get(t)) : G.head(tree.get(t)); + while(gn!=s) if(visited.get(gn)==1) { //FIXME: nonstandars. gcc extension! aug_val