#6552: bug in depth-first searching
--------------------------+-------------------------------------------------
Reporter: jason | Owner: rlm
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.1
Component: graph theory | Keywords:
Reviewer: | Author:
Merged: |
--------------------------+-------------------------------------------------
Here is a bug in the depth-first searching of a graph:
{{{
sage: D = DiGraph( { 0: [1,2,3], 1: [4,5], 2: [5], 3: [6], 5: [7], 6: [7],
7: [0]})
sage: list(D.depth_first_search(0, ignore_direction=True))
[0, 7, 6, 5, 3, 2, 1, 4]
}}}
It should be {{{[0, 7, 6, 3, 5, 2, 1, 4]}}}.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6552>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---