-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
add interface to nauty's genktreeg #36924
Conversation
Notice that genktreeg is currently not accessible from the homebrew install of nauty, it is missing in the formula https://github.com/Homebrew/homebrew-core/blob/32c869d54088962356f34b8fe2cb64f4e8740fe9/Formula/n/nauty.rb . I don't know how to report that. So currently we must install nauty from source to access genktreeg. |
Apparently also not the case for the pip installable version (see doctests errors). |
You can change |
Right now we only test for features of nauty 2.8.0; this new generator was added in 2.8.8. |
Thank you Matthias. Let me know if I should take the opportunity to add other generators, even if we don't have interfaces yet. |
I think it's good enough to just test for this one - as a representative of the newest features in 2.8.8. It may be a good idea to update the comment in the spkg-configure.m4 file though |
I have updated the comment. |
Now I realize that you may have meant ... to add them in the installation script? +1 on that. |
Also so that the updated installation script takes effect on users' machines:
|
Would it make sense to add This would help with the Conda CI (which fails because it does not have a suitable nauty package; related to the discussion in #35593 (comment)) |
We may add Also,; we currently have
|
I added some tags. Let's see if it is enough for the Conda CI |
Looks like this particular program is not included in the conda distribution. Perhaps the fix is as easy as changing https://github.com/conda-forge/nauty-feedstock/blob/f0bb97fb7503af89d94250541f2519cbc154008e/recipe/build.sh#L28 accordingly. |
Several programs of nauty are missing in the conda and homebrew distributions (may be in other distributions as well): countneg, genktreeg, ransubg PROGRAMS="
- addedgeg addptg amtog ancestorg assembleg biplabg catg complg converseg copyg countg cubhamg deledgeg
- delptg dimacs2g directg dreadnaut dretodot dretog edgetransg genbg genbgL geng gengL genposetg genquarticg genrang
- genspecialg gentourng gentreeg hamheuristic labelg linegraphg listg multig nbrhoodg
- newedgeg pickg planarg productg ranlabg shortg showg subdivideg twohamg underlyingg vcolg
- watercluster2 NRswitchg"
+ addedgeg addptg amtog ancestorg assembleg biplabg catg complg converseg copyg
+ countg countneg cubhamg deledgeg delptg dimacs2g directg dreadnaut dretodot
+ dretog edgetransg genbg genbgL geng gengL genposetg genquarticg genrang
+ genspecialg gentourng gentreeg genktreeg hamheuristic labelg linegraphg listg
+ multig nbrhoodg newedgeg pickg planarg productg ranlabg ransubg shortg showg
+ subdivideg twohamg underlyingg vcolg watercluster2 NRswitchg" What's the right way to ask for modifications ? |
This now conda-forge/nauty-feedstock#24 |
These should be
|
The runtime feature test still thinks that the
|
Indeed. Fully updating nauty is more involved than what I though. |
Documentation preview for this PR (built with commit 5ad350c; changes) is ready! 🎉 |
Looking good; ready for review? |
Yes, I think it's ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
sagemathgh-36924: add interface to nauty's genktreeg Nauty has a generator of k-trees. We add an interface to this generator. This is a complement of sagemath#36587. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [x] I have created tests covering the changes. - [x] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36924 Reported by: David Coudert Reviewer(s): Matthias Köppe
Nauty has a generator of k-trees. We add an interface to this generator.
This is a complement of #36587.
📝 Checklist
⌛ Dependencies