#19227: Graphs: DFS and broken distance-parameter
-------------------------------------+-------------------------------------
Reporter: jmantysalo | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.9
Component: graph theory | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jmantysalo/graphs__dfs_and_broken_distance_parameter|
89b7490bec7e28f1c63bb81603eeab69fefb4e65
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by dcoudert):
Hello,
the behavior of the {{{G.depth_first_search(1, distance=3)}}} is not
machine dependent but it depends on the labels of the vertices which
define an ordering between vertices. So if you relabel `10->1` and `1->10`
in your example, you will get different result.
I don't see a bug here, I see a definition problem: what are we expecting?
If we are not able to provide a clear definition of the expected behavior
of the `distance` parameter, we should not have it in DFS.
David.
--
Ticket URL: <http://trac.sagemath.org/ticket/19227#comment:6>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.