MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Directed Hamiltonian Cycles

  • To: mathgroup at
  • Subject: [mg109172] Directed Hamiltonian Cycles
  • From: J Siehler <jsiehler at>
  • Date: Wed, 14 Apr 2010 23:14:19 -0400 (EDT)

I could be overlooking something, but there seems to be no mention in
the documentation (Version 7.0) that HamiltonianCycle and HamiltonianQ
do not work properly for directed graphs.  Not only that, they fail in
a misleading way, returning a result with no warning that it's
probably bogus.  This is noted in the MathWorld page on Hamiltonian
Cycles (, but
perhaps the fact could be noted more clearly in the documentation for
these functions?

In[22]:= FromOrderedPairs[{{1,2},{2,3},{3,1}}]

Out[22]=Graph:<3,3,Directed >
Out[23]= False

  • Prev by Date: make arrows same size in VectorPlot?
  • Next by Date: Through[(a+b+b)[x]]
  • Previous by thread: Re: make arrows same size in VectorPlot?
  • Next by thread: Through[(a+b+b)[x]]