Skip to content

[Bioc-devel] bug in graph package version 1.10.0 (fwd)

1 message · Korbinian Strimmer

#
Li.Long at isb-sib.ch schrieb:
The problem is that that the weight *is* defined,
because addEdge() implicitly creates it.
If you run the example script you see that

  edgeData(gX)                      # weight = 0.2

gives

$`A|C`
$`A|C`$weight
[1] 0.2


$`C|A`
$`C|A`$weight
[1] 0.2


In all previous versions of graph the command

  eWV(gX, edgeMatrix(gX), useNNames = TRUE)

would give the edge weight as "0.2", but not so in version
1.10.0 Note that the above command appears in the examples
on the help page of edgeMatrix():

library("graph")
?edgeMatrix


Thanks, Korbinian