New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cutwidth of a graph #18746
Comments
Branch: public/18746 |
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:3
We could certainly share more code with the |
This comment has been minimized.
This comment has been minimized.
comment:4
Helloooooooo, Several remarks:
Have fuuuuuuun, Nathann |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:6
Hello, I have performed several modifications and I'm now using the I don't know how to use the templates (and I'm unable to find this in #18395). I agree that we can certainly speed-up method David. |
comment:7
Okay ! Note that replacing the import 'fily.pyx' with a cimport is not totally free. If you cimport functions, those functions will not be inlined (in particular popcount32).
I just added a merge commit (that branch was in conflict with the latest beta). The trick that is used in that ticket is the following: the function Inside the function, depending on the type of this variable, the value of
Well, it is the 'current cost' that is computed in 'exists', isn't it? We can just add an argument 'previous_cost' to 'exists', and then whenever 'exists' (which computed 'current_cost') calls 'exists', it can pass its 'current_cost' as a 'previous_cost'?.. This way 'exists' only has to compute the difference. Nathann |
comment:9
Hello, I have improved the cost computation. It is now incremental and so faster. I don't see how I can avoid the cimport of popcount32. If I want to reuse the For the fuse type / template stuff, since now the methods have different inputs, it is may be too complicated for the possible benefit. You agree? David. |
comment:10
Hello David, I added a commit on top on top of your public branch (hoping that you will nto
Could you also document the parameters of the 'exists' function, and the Thanks, Nathann |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:13
I'm so sorry that you spend so much time understanding this code. In fact the
Are you sure that the
I have renamed
OK. I wasn't sure of that.
Right. For vertex separation it was sufficient to initialize it with
ok. This is admittedly easier that to create a one line ticket.
I tried to improve both the module documentation and the computation steps.
Thanks to you. David. New commits:
|
comment:14
Hellooooooo,
Yepyep, 'unfortunately'. I needed it recently, and... Well, it works
Nathann |
Reviewer: Nathann Cohen |
comment:15
OKayyyyyyyyyyyyy ! I looked at it again and it looks good. Thanks for the update! Assuming that you have no problem with my commit, I switch this to Nathann |
comment:16
Hello, Thanks for the review and the commit ! D.
|
comment:17
Arggggggggggg.... Okay |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:20
Thank you. |
Changed branch from public/18746 to |
This ticket implements a first method for computing the cutwidth of (small) graphs.
In an other ticket, I will add a MILP formulation for comparison purpose.
CC: @nathanncohen
Component: graph theory
Author: David Coudert
Branch/Commit:
551d0f0
Reviewer: Nathann Cohen
Issue created by migration from https://trac.sagemath.org/ticket/18746
The text was updated successfully, but these errors were encountered: