I have an nxm adjacency matrix, where (i, j) represent the estimate of the relationship between i and j. I need to convert it to the following format:
i j <score1>
using the R 'igraph package and outputting it to a text file.
I can get an Eggelist, but he appears without weights. I used the following code:
library(igraph)
g <- graph.adjacency(myAdjacencymatrix)
get.edgelist(g)
However, he does not show weight.
Benny source
share