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
Error in function Graph.odd_girth() #17640
Comments
comment:1
Could you provide an instruction that triggers that bug ? We cannot do much with a function when we do not know how it should be called. Also, you cannot ask us to 'run computations for hours' in order to check it. Thanks for your understanding, Nathann |
This comment has been minimized.
This comment has been minimized.
comment:3
Replying to @nathanncohen:
I clarified my text, is it more clear now? |
comment:4
Yes, thanks. Could you give us the graphs Nathann |
This comment has been minimized.
This comment has been minimized.
comment:5
Replying to @nathanncohen:
OK, so here is one graph of order 15 for which there was an error: And another one of order 14 (for this one, I got the "running out of prime" error): Edit: a third one, of order 13 this time: For all of them, calling odd_girth() is not a problem. Note that they all have odd girth 5. Maybe this is a problem with the amount of calls to "odd_girth()" that are done? |
This comment has been minimized.
This comment has been minimized.
comment:8
Yeah it sees related to the number of calls, as other persons seem to have met the same problem when computing many characteristic polynomials Nathann |
comment:9
OK, thanks... At least it seems to be a known bug. |
comment:10
This ticket corresponds to the bug reported at #15535. Should be closed as a 'duplicate'. Nathann |
Hi,
I'm doing some computations based on enumerating graphs via "nauty_geng()", which enumerate all graphs of a given order.
For each graph, among other few things, I test the odd girth of the generated graphs (see code below). The code runs fine for some hours (i.e. it is able to perform the odd_girth() test for many millions graphs), but after some time it fails, with an error message indicating there is a problem in Graph.odd_girth(). The error messages indicate a possible relation with matrices and/or primes (see below).
Unfortunately since the code runs fine for some hours and only fails after a long time, I cannot reproduce the bug without doing the whole computation.
Note: I realise that I am using the precompiled version 5.8 of sage that comes with the ubuntu repository (ubuntu 12.04). So maybe this is fixed in newer versions... In any case I will now use the latest release.
EDIT: the same bug happens with Sage 6.4 (run on another computer).
Here is my code:
And I called:
in three different worksheets of the notebook interface.
And here are 2 different tracebacks that stopped the computation of "OG7_NOhomC5(13,13)" and "OG7_NOhomC5(14,14)", both have an error located in "odd_girth()". Note that "OG7_NOhomC5(15,15)" has not stopped, and is still running after about 8 hours.
Component: graph theory
Issue created by migration from https://trac.sagemath.org/ticket/17640
The text was updated successfully, but these errors were encountered: