Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #10103 > unrolled thread

Crash in FindShortestPath (bug)

Started bySzabolcs Horvát <szhorvat@gmail.com>
First post2012-05-16 09:59 +0000
Last post2012-05-16 09:59 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Crash in FindShortestPath (bug) Szabolcs Horvát <szhorvat@gmail.com> - 2012-05-16 09:59 +0000

#10103 — Crash in FindShortestPath (bug)

FromSzabolcs Horvát <szhorvat@gmail.com>
Date2012-05-16 09:59 +0000
SubjectCrash in FindShortestPath (bug)
Message-ID<jovtpp$nnn$1@smc.vnet.net>
Dear MathGroup members,

The following input will crash the kernel on 8.0.4:

FindShortestPath[Graph[{1, 2, 3}, {2 <-> 3}, EdgeWeight -> {1}], 1, 3]

In general, I think the crash occurs when there is no path between the 
two vertices (in this example 1 is unconnected) and some EdgeWeights are 
set.

I am sharing this in case others encounter crashes when using 
FindShortestPath and have problems tracking the problem down (to avoid 
it).  A kernel crash can be quite annoying (losing all the session 
data).  It's good to be aware of problems like this so one can avoid the 
crash.



-- 
Szabolcs Horvát
Visit Mathematica.SE:  http://mathematica.stackexchange.com/

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web