#16214: Bug in is_hamiltonian: non-simple digraphs
-------------------------+-------------------------------------------------
       Reporter:         |        Owner:
  ncohen                 |       Status:  needs_review
           Type:         |    Milestone:  sage-6.2
  defect                 |   Resolution:
       Priority:  major  |    Merged in:
      Component:  graph  |    Reviewers:  Vincent Delecroix
  theory                 |  Work issues:
       Keywords:         |       Commit:
        Authors:         |  2c23fd7aa45b19efe453a64322a5ac196501eb61
  Nathann Cohen          |     Stopgaps:
Report Upstream:  N/A    |
         Branch:         |
  public/16214           |
   Dependencies:         |
  #16210                 |
-------------------------+-------------------------------------------------

Comment (by vdelecroix):

 hmmmmmmmmmmmmmmm
 {{{
 sage: G = DiGraph(loops=True)
 sage: G.add_edges([(0,0),(0,1),(1,1),(1,0)])  # i.e. complete digraph with
 loops
 sage: G.is_hamiltonian()
 False
 sage: G.remove_loops()
 sage: G.is_hamiltonian()
 True
 }}}
 Maybe I am wrong on the definition of hamiltonicity...

--
Ticket URL: <http://trac.sagemath.org/ticket/16214#comment:7>
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.

Reply via email to