-
-
Notifications
You must be signed in to change notification settings - Fork 556
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
New algorithm for Max Clique in Graph class using Cython #5793
Comments
comment:1
Hi, the patch as is will not go into Sage since you are putting the sources for cliquer-1.2 into the Sage library tree where they do not belong. I have not looked at the cython interface, but my guess would be that we need to change cliquer-1.2 to create a library. Please split the cython interface work (the code you wrote minus the cliquer-1.2 source code) and the cliquer-1.2.spkg work. The Cython code should remain here while spkg should go to #5669. Cheers, Michael |
comment:2
A new patch using the SPKG you can find at : |
comment:4
Duplication of #6355. |
comment:5
To get this going again, here are some specific suggestions for patch 12427.patch and the associated spkg:
|
comment:6
rlm: this ticket has what looks like the most current patch, whereas #6355 does not have a patch. I'm reopening this ticket so that the "active" patch is not closed (but I am not opposed to moving this patch to #6355 to consolidate things!). I feel a bit silly commenting on a patch here when the ticket is closed, but the patch clearly has not been moved/merged/etc. |
comment:7
Suggestions 1 and 6 in my comment above apply to the spkg, not the patch. |
comment:8
Whence the "../../../../local/lib/cliquer-1.2/cliquer.h" if there's no spkg. Also, I belive local/include is in the include path, so no need to have this long path. (And include files belong in local/include, not local/lib.) I would probably drop the 1.2 suffix so we don't have to update the link paths every time the version gets bumped. |
comment:9
that's what I meant by point 2 (just do |
comment:10
Here is a new patch ( number 12428 ) using a shared library !!! I hope you will appreciate it as it took me some time to figure out the inner behavior of Sage ;-) The new spkg is available on #6355 Nathann |
comment:11
My version is working, but I am a bit lost with all the patches... How can I produce a patch containing all the modifications I made since the begining ( since I cloned the original branch, actually ) ? Thanks !!! |
comment:12
One option is to clone the branch using |
comment:13
New patch "cliquer.patch" containing all the modifications for cliquer since the beginning. And with the good directory's name ;-) |
Attachment: cliquer.patch.gz Cliquer, from the beginning to the end, with the good directory's name ! |
comment:14
Nathann, I have deleted the previous patches to avoid confusion. When addressing the following issues, please post another patch to be applied on top of the first (this makes review easier).
Also you need to change one instance of
|
comment:15
I hope all is fixed now... Though I just renamed cliquer.pxi to cliquer.pxd without really understanding the difference ^^; By the way, I am not really sure this possibility to change the algorithm used to compute the cliquer number is that useful... Just take a look at this : sage: g=graphs.RandomGNP(100,.5) Anyway, from the practical point of view, it works now ;-) Nathann |
Second patch |
comment:16
Attachment: cliquer-2.patch.gz |
Attachment: cliquer-4-rebased-sage.4.1.patch.gz |
comment:30
Replying to @nathanncohen:
I had realized this some time after writing that comment. Please forgive me. |
Editing. |
Attachment: cliquer-5-ref.patch.gz Attachment: trac_5793-cliquer-flattened.patch.gz Flattened patch based on sage-4.1. |
Reviewer: Robert Miller |
Author: Nathann Cohen |
This comment has been minimized.
This comment has been minimized.
comment:33
In the last patch:
|
comment:34
With the SPKG at #6355 and the patch on this ticket, I got the following doctest failures:
|
comment:35
Note: making the |
comment:36
I do not really know how to read patch files, but it seems to me you replaced : If right, I have two remarks :
I expect it to be way faster than an enumeration of all the cliques ! ;-) |
Apply on top of flattened patch |
comment:37
Attachment: trac_5793-part-6.patch.gz Nathann, Thanks for spotting that. The patch is updated! |
comment:38
I applied patches in the following order:
|
Changed reviewer from Robert Miller to Robert Miller, Minh Van Nguyen |
Merged: Sage 4.1.1.rc1 |
This depends on #6355.
CC: @rlmill
Component: graph theory
Author: Nathann Cohen
Reviewer: Robert Miller, Minh Van Nguyen
Merged: Sage 4.1.1.rc1
Issue created by migration from https://trac.sagemath.org/ticket/5793
The text was updated successfully, but these errors were encountered: