[BioC] Problem with sp.between
Seth Falcon
sfalcon at fhcrc.org
Wed Nov 30 15:49:53 CET 2005
On 30 Nov 2005, adrien.jamain at imperial.ac.uk wrote:
> Hi Seth and everyone,
>
> Actually I found the problem a couple of days ago, I was going to
> send a reply. It is to do with negative weights in the graph. The
> graphNEL object is fine with it, but sp.between doesn't like it *at
> all* (even if the shortest path between the 2 nodes in argument only
> contains positive weights -that's why the problem isn't easy to
> find). Of course one cannot work out distances with negative weights
> (in general), but perhaps an all-out crash could be avoided and an
> error returned?
>
> Here is a example (if your R is fed up with life):
> gR = new("graphNEL", nodes=c("A", "B", "C"))
> gR = addEdge("A", "B", gR, 1)
> gR = addEdge("B", "C", gR, -1)
> sp.between(gR, "A", "B")
Excellent, we will investigate and (hopefully) deploy a fix soon.
+ seth
More information about the Bioconductor
mailing list