R: get.adjacency doubles the diagonal entries when sparse=TRUE

Bug #303096 reported by Gábor Csárdi
2
Affects Status Importance Assigned to Milestone
igraph
Fix Released
High
Gábor Csárdi

Bug Description

also with non-null weight attributes
# works fine
g <- erdos.renyi.game(5,2/5)
get.adjacency(g)
get.adjacency(g, sparse=TRUE)
# problem
g2 <- add.edges(g, c(0,0))
get.adjacency(g2)
get.adjacency(g2, sparse=TRUE)

Changed in igraph:
assignee: nobody → gabor.csardi
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Gábor Csárdi (gabor.csardi) wrote :

Fixed in revision #1484 (0.6-main) and #1465 (0.5-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/27

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.