#9698: Hamiltonian cycles in undirected graphs - backtracking algorithm.
----------------------------------+-----------------------------------------
Reporter: fidelbarrera | Owner: jason, ncohen, rlm
Type: enhancement | Status: needs_info
Priority: major | Milestone: sage-4.5.3
Component: graph theory | Keywords:
Author: Fidel Barrera-Cruz | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
----------------------------------+-----------------------------------------
Comment(by rlm):
Replying to [comment:5 ncohen]:
> there is a file named graphs/generic_graph_pyx.pyx (which is a Cython
file), into which you could add your algorithm (using Cython to optimize
it if possible).
`generic_graph` and `generic_graph_pyx` are for methods which are common
to `Graph` and `DiGraph`. This algorithm is just for undirected graphs.
What there needs to be are `graph_pyx` and `digraph_pyx` files, which
there currently are not.*
> The methods added to this class are not directly accessible through the
Graph class
This is just plain wrong. Any methods you add to the *class*
`GenericGraph_pyx` are inherited by `GenericGraph`, which are then
inherited by `Graph` and `DiGraph`.
> Well, this may be quite some work, but if I can help you at any step,
please tell me :-)
* - I'm not sure whether Cython supports multiple inheritance or not. It
would be harder to have `graph_pyx` and `digraph_pyx` if not, because (I
think) Cython cdef classes cannot inherit from Python classes...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9698#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 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.