Opened 16 years ago
Closed 16 years ago
#175 closed enhancement (fixed)
Port the feasible circulation algorithm
Reported by: | Alpar Juttner | Owned by: | Alpar Juttner |
---|---|---|---|
Priority: | critical | Milestone: | LEMON 1.1 release |
Component: | core | Version: | hg main |
Keywords: | Cc: | ||
Revision id: |
Description (last modified by )
Attachments (4)
Change History (13)
comment:1 Changed 16 years ago by
Description: | modified (diff) |
---|---|
Status: | new → assigned |
Changed 16 years ago by
Attachment: | circ-5a7dbeaed70e-a26cb20c4c5f-ef7c87032593.bundle added |
---|
comment:2 Changed 16 years ago by
comment:3 Changed 16 years ago by
Priority: | major → critical |
---|
Changed 16 years ago by
Attachment: | circ_b4fbf36feb57.patch added |
---|
Changed 16 years ago by
Attachment: | circ-test_2a7704daaf11.patch added |
---|
comment:4 follow-up: 6 Changed 16 years ago by
I attached two changesets containing improvements. See [b4fbf36feb57] and [2a7704daaf11].
Make check fails on [ef7c87032593] because of a missing #include
. [2a7704daaf11] also fixes this.
comment:5 Changed 16 years ago by
I have two questions:
- What concept do we want to follow about "checker funtions" like the ones in Circulation? Most of the algorithms do not contain such functions, only the test files of them. Should such checker function be placed into the algorithm classes or into the test files? An end-user typically don't need such checking since the correctness of the algorithms should be supposed. (Among others that's why we have test files.)
- How should a test file read the input graph? From a separate file or from a constant char array? See e.g.
preflow_test.cc
andcirculation_test.cc
.
comment:6 follow-up: 7 Changed 16 years ago by
Replying to kpeter:
Make check fails on [ef7c87032593] because of a missing
#include
. [2a7704daaf11] also fixes this.
Very strange. I'm pretty sure I tried to compile it. (If not, then it is actually quite impressive that the missing include is the only error I made, isn't it? :) )
Btw, why do we need to include the lemon/elevator.h
? Isn't is included by lemon/circulation.h
?
comment:7 Changed 16 years ago by
Replying to alpar:
Btw, why do we need to include the
lemon/elevator.h
? Isn't is included bylemon/circulation.h
?
Yes, this include is unnecessary. I just copied the #include commands from preflow_test.cc
which also contains this unnecessary line.
You can remove it from both test files.
Changed 16 years ago by
Attachment: | circ-test_63c4cc72d7eb.patch added |
---|
comment:8 Changed 16 years ago by
For this test file you can use [63c4cc72d7eb] isntead of the former changeset.
comment:9 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
A bit reorganized version of these changes are in the main now, see [5a7dbeaed70e], [fa341dd6ab23], [26fd85a3087e], [235be9d4b6ab] and [940587667b47].
The attached bundle file ports the Circulation class. Namely,
Def*
toSet*
.