#12134: is_planar(set_pos=True) doesn't work with small graphs
-----------------------------+----------------------------------------------
   Reporter:  brunellus      |          Owner:  jason, ncohen, rlm
       Type:  defect         |         Status:  needs_work        
   Priority:  major          |      Milestone:  sage-5.0          
  Component:  graph theory   |       Keywords:                    
Work_issues:                 |       Upstream:  N/A               
   Reviewer:  Nathann Cohen  |         Author:  Lukáš Lánský      
     Merged:                 |   Dependencies:                    
-----------------------------+----------------------------------------------
Changes (by jdemeyer):

  * status:  positive_review => needs_work


Comment:

 I get a doctest error:
 {{{
 sage -t  -force_lib devel/sage/sage/graphs/planarity.pyx
 **********************************************************************
 File "/mnt/usb1/scratch/jdemeyer/merger/sage-5.0.beta1/devel/sage-
 main/sage/graphs/planarity.pyx", line 68:
     sage: for i,g in enumerate(atlas_graphs):
           if (not g.is_connected() or i==Integer(0)):
               continue
           try:
               _ = g.is_planar(set_embedding=True, set_pos=True)
           except:
               print "There is something wrong here !"
               break
 Exception raised:
     Traceback (most recent call last):
       File
 "/mnt/usb1/scratch/jdemeyer/merger/sage-5.0.beta1/local/bin/ncadoctest.py",
 line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File
 "/mnt/usb1/scratch/jdemeyer/merger/sage-5.0.beta1/local/bin/sagedoctest.py",
 line 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File
 "/mnt/usb1/scratch/jdemeyer/merger/sage-5.0.beta1/local/bin/ncadoctest.py",
 line 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_1[6]>", line 1, in <module>
         for i,g in enumerate(atlas_graphs):###line 68:
     sage: for i,g in enumerate(atlas_graphs):
     NameError: name 'atlas_graphs' is not defined
 **********************************************************************
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12134#comment:13>
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