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") > 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(as.matrix(data), weighted=T) > 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
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