#5913: [with patch, needs work] expose graph coloring in sage
--------------------------+-------------------------------------------------
 Reporter:  was           |       Owner:  rlm     
     Type:  enhancement   |      Status:  new     
 Priority:  major         |   Milestone:  sage-4.0
Component:  graph theory  |    Keywords:          
--------------------------+-------------------------------------------------

Comment(by was):

 The coloring doctest will fail, since it involves a dictionary whose order
 is random:
 {{{
 sage -t  devel/sage/sage/graphs/graph.py
 **********************************************************************
 File "/Users/wstein/build/sage-3.4.1.rc3/devel/sage-
 main/sage/graphs/graph.py", line 8846:
     sage: H = G.coloring(hex_colors=True); H
 Expected:
     {'#0000ff': [4], '#00ff00': [1, 2, 3], '#ff0000': [0, 5, 6]}
 Got:
     {'#00ff00': [1, 2, 3], '#ff0000': [0, 5, 6], '#0000ff': [4]}
 **********************************************************************
 1 items had failures:
    1 of   7 in __main__.example_162
 ***Test Failed*** 1 failures.
 }}}

 Nothing else fails, and nothing else is wrong with this patch as far as I
 can tell.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5913#comment:6>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
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