#11950: Bug in topological_sort
----------------------------+-----------------------------------------------
   Reporter:  andrejv       |          Owner:  jason, ncohen, rlm
       Type:  defect        |         Status:  new               
   Priority:  major         |      Milestone:  sage-4.7.3        
  Component:  graph theory  |       Keywords:                    
Work_issues:                |       Upstream:  N/A               
   Reviewer:                |         Author:                    
     Merged:                |   Dependencies:                    
----------------------------+-----------------------------------------------
 There is a bug in topological_sort for digraphs:
 {{{
 sage: D = DiGraph('IR??C?G?OOAOGc@??o')
 sage: D.topological_sort()
 [0, 1, 4, 9, 6, 7, 5, 8, 3, 2, 1]
 }}}
 A correct answer is returned from networkx:
 {{{
 sage: D.topological_sort(implementation="NetworkX")
 [0, 4, 9, 6, 7, 5, 8, 3, 2, 1]
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11950>
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