ver 0.6.2 has serious problems importing adjacency matrix
Bug #1019624 reported by
joax
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
igraph |
Fix Released
|
High
|
Gábor Csárdi |
Bug Description
1) importing a matrix like attached below produces a wrong directed graph
0 0 0 0
0 0 0 1
0 0 0 0
2 0 2 0
2) Also displaying id or values from draw menu at tkigraph creates monstrous names.
3) exporting the previously imported matrix also is wrong.
4) the version 0.5.4.1 worked fine, but trying to install it in R ver 2.15.1 on win7 is not possible!
I move back to R ver 2.10 and igraph 0.5.4.1
Changed in igraph: | |
milestone: | none → 0.6.4 |
To post a comment you must log in.
Seems like this is indeed a bug; I have assigned this to Gabor since he is the developer of the R interface.
Sample session in which I reproduced the bug:
> data <- read.table( "test.adj" ) (as.matrix( data), weighted=T)
> data
V1 V2 V3 V4
1 0 0 0 0
2 0 0 0 1
3 0 0 0 0
4 2 0 2 0
> g <- graph.adjacency
> g
IGRAPH DNW- 4 11 --
+ attr: name (v/c), weight (e/n)
> E(g)$weight
[1] 1.326247e-314 3.458460e-323 4.243992e-314 4.243992e-314 2.126217e-314
[6] 2.147193e-314 2.121996e-314 2.146890e-314 2.147193e-314 2.146890e-314
[11] 2.126304e-314