[BioC] RBGL, shortest paths, edge weights, and the new graph class
Paul Shannon
pshannon at systemsbiology.net
Thu May 18 02:00:38 CEST 2006
It looks as if some of the RBGL functions ('sp.between' for example)
depend
upon the old graph class, pre 1.10, in which edge weights were
an obligatory attribute.
sp.between (g, 'F', 'L')
Error in if (any(eWW[eWW < 0])) stop("sp.between requies that all
edge weights are nonnegative") :
missing value where TRUE/FALSE needed
sp.between <- function (g, start, finish)
{
...
eW = edgeWeights(g)
eWW <- unlist(eW)
if (any(eWW[eWW < 0]))
stop("sp.between requies that all edge weights are nonnegative")
Is there any plan to accommodate the new 'weightless' graph class
design?
Or is there any workaround anybody can suggest?
Thanks!
- Paul
More information about the Bioconductor
mailing list