R: get.adjacency fails for sparse matrices and character attributes
Bug #1025799 reported by
Gábor Csárdi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
igraph |
Fix Released
|
Medium
|
Gábor Csárdi |
Bug Description
> getIgraphOpt(
[1] TRUE
> g <- graph(c(1,2, 2,3, 3,1))
> E(g)$a <- letters[1:3]
> g
IGRAPH D--- 3 3 --
+ attr: a (e/c)
> get.adjacency(g)
Loading required package: Matrix
Loading required package: lattice
3 x 3 sparse Matrix of class "dgCMatrix"
[1,] . 1 .
[2,] . . 1
[3,] 1 . .
> get.adjacency(g, attr="a")
See the details here:
https:/
To post a comment you must log in.
Fixed in revisions #2995 (0.7-main) and #2962 (0.6-main).