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

Reported by Gábor Csárdi on 2012-07-17
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

lp:igraph (Merged)
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

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  Edit
Everyone can see this information.

Other bug subscribers