#9925: Doctest error in sage/graphs/graph.py
---------------------+------------------------------------------------------
 Reporter:  mpatel   |         Owner:  mvngu     
     Type:  defect   |        Status:  closed    
 Priority:  blocker  |     Milestone:  sage-4.6  
Component:  doctest  |    Resolution:  worksforme
 Keywords:           |        Author:            
 Upstream:  N/A      |      Reviewer:            
   Merged:           |   Work_issues:            
---------------------+------------------------------------------------------

Comment(by ncohen):

 Hmmm..... If ``cycle`` is a boolean, it means it is equal to True (the
 method called returns "True", or a certificate that it is not true
 otherwise -- a graph object). I have already seen this method to return
 wrong answers (and this is fixed in #9420), but the code *IS*
 deterministic and in this case I do not understand why you would not get
 an error at the previous docstring :

 {{{
             sage: g.is_even_hole_free()
             True
 }}}

 which uses the same graph. Of course, this doctest is another one of the
 kind I'm trying to get rid off these days : it theoretically fails with a
 probability of 1/9999999999999999.... which means that it "can happen"...
 But once again, this would mean an error at the previous docstring too
 `O_o`

 if you are finding yourself on one of the machines on which you have seen
 it failing, could you give this a try ?

 {{{
     sage: all( isinstance(graphs.RandomBipartite(10, 10,
 .5).is_even_hole_free(certificate = True), "Graph") for i in range(10000)
 )
 }}}

 Nathann

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9925#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to