R: get.adjacency fails for sparse matrices and character attributes

Bug #1025799 reported by Gábor Csárdi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
igraph
Fix Released
Medium
Gábor Csárdi

Bug Description

> getIgraphOpt("sparsematrices")
[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://answers.launchpad.net/igraph/+question/202660

Related branches

Revision history for this message
Gábor Csárdi (gabor.csardi) wrote :

Fixed in revisions #2995 (0.7-main) and #2962 (0.6-main).

Changed in igraph:
status: Confirmed → Fix Released
Revision history for this message
Gábor Csárdi (gabor.csardi) wrote : Continue on github

The development of igraph has moved to github, so please do not comment on this bug here. You are of course welcome to comment on github, here:
https://github.com/igraph/igraph/issues/226

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.