#10206: Various issues in find_hamiltonian
----------------------------+-----------------------------------------------
Reporter: jdemeyer | Owner: jason, ncohen, rlm
Type: defect | Status: new
Priority: major | Milestone: sage-4.6.1
Component: graph theory | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
----------------------------+-----------------------------------------------
Description changed by mvngu:
Old description:
> 1.
> {{{
> sage: from sage.graphs.generic_graph_pyx import find_hamiltonian as fh
> sage: G = graphs.CompleteGraph(1); fh(G)
> Traceback (most recent call last):
> ...
> ValueError: empty range for randrange() (0,0, 0)
> }}}
>
> 2.
> {{{
> sage: from sage.graphs.generic_graph_pyx import find_hamiltonian as fh
> sage: G = graphs.CompleteGraph(2); fh(G)
> [ Sage just hangs... ]
> }}}
>
> 3. Why is there a {{{G.hamiltonian_cycle()}}} member function but not
> {{{G.hamiltonian_path()}}}?
New description:
1.
{{{
sage: from sage.graphs.generic_graph_pyx import find_hamiltonian as fh
sage: G = graphs.CompleteGraph(1); fh(G)
Traceback (most recent call last):
...
ValueError: empty range for randrange() (0,0, 0)
}}}
2.
{{{
sage: from sage.graphs.generic_graph_pyx import find_hamiltonian as fh
sage: G = graphs.CompleteGraph(2); fh(G)
[ Sage just hangs... ]
}}}
3. Why is there a {{{G.hamiltonian_cycle()}}} member function but not
{{{G.hamiltonian_path()}}}?
See #10205 for some ideas on fixes.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10206#comment:4>
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.