R: get.adjacency doubles the diagonal entries when sparse=TRUE
Bug #303096 reported by
Gábor Csárdi
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.
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 |
To post a comment you must log in.
Fixed in revision #1484 (0.6-main) and #1465 (0.5-main).