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
Bug in DiGraph.longest_path #14412
Comments
comment:1
Most stupig bug ever. I fixed it without noticing what I did, and it turns out that Needs a review ! Nathann (I also moved a "solver" argument from one place to another, as this is the way things are done nowadays with the LP backends) |
comment:3
(this patch also rewrites many lines using Nathann |
comment:4
Hi Nathann, I just went through your patch, and it looks good. Thanks! So positive review assuming all tests pass. I am going to kick to bot. |
comment:5
This breaks the function "a_long_simple_root", see bot report |
comment:6
That's crazy Nathann |
Attachment: trac_14412.patch.gz |
comment:7
Fixed ! I also had the pleasure to read things like that in
It's a long way.... Nathann |
comment:8
Replying to @nathanncohen:
Thanks! I checked it, and it's good.
Yes, the limitations of the algorithms are precisely documented. This in particular to prompt creative people to find better algorithms that will work in a more general setting (it's non trivial). Amitiés. |
comment:10
Yoooooooooooo !
(with birds singing in the background) it is indeed a delight to see this small piece of software grow everyday, becoming more powerful and accurate. Wouldn't it be nice though if those cases raised an exception ? Some forgetful users may not read the documentation. Some functions that use this one may not contain the warning in their docstring. Our innocent users may be led to believe that this method and those that may depend on it always returns correct results even though its docstring states the opposite. And (without birds singing in the background) : it's not "other people's job" to add these tests in a code they did not write. Nicolas. C'est dangereux ces trucs, tu sais bien... C'est des choses qu'on fait dans son code perso, pas dans du code qu'on partage. Nathann |
Reviewer: Nicolas M. Thiéry |
Merged: sage-5.10.beta2 |
Reported by Nicolas Thiery :
CC: @nthiery
Component: graph theory
Author: Nathann Cohen
Reviewer: Nicolas M. Thiéry
Merged: sage-5.10.beta2
Issue created by migration from https://trac.sagemath.org/ticket/14412
The text was updated successfully, but these errors were encountered: