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 is_hamiltonian: wrong exceptions are caught #16210
Comments
Branch: u/ncohen/16210 |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
Commit: |
This comment has been minimized.
This comment has been minimized.
Reviewer: Vincent Delecroix |
comment:4
Hi Nathann, Why not a Vincent |
comment:5
Because I am not sure that What is the problem with long messages ? They give more meaningful information. Nathann |
Changed branch from u/ncohen/16210 to public/16210 |
comment:6
Let us go for long messages... I simplified (I hope) the implementation of the function |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
AHahah. Well, it does more tests than in the first version, but I don't think this can ever become a very important problem Nathann |
Changed branch from public/16210 to |
This happens because in
traveling_salesman_problem
the call to_scream_is_not_simple
raises aValueError
when the graph is not simple, and the same exception is raised when the graph is not hamiltonian.We can use the
EmptySetError
to differentiate them, as we cannot optimize anything on an empty set.Nathann
Component: graph theory
Author: Nathann Cohen
Branch/Commit:
0174081
Reviewer: Vincent Delecroix
Issue created by migration from https://trac.sagemath.org/ticket/16210
The text was updated successfully, but these errors were encountered: