I am converting a directed graph into an undirected graph using as.undirected. However, there is an issue with the attributes combination, specifically in the first line and first column.
Here is how it looks like as a directed graph (net) :
net <- graph.data.frame(edges, nodes, directed=T) as.matrix(get.adjacency(net, attr = "weight"))
Then...
netSym <- as.undirected(net, "collapse", edge.attr.comb="sum") as.matrix(get.adjacency(netSym, attr = "weight"))
matrix with attributes combined, and the inexplicable error
Basically, everything is correct, except for the combination of OL and OM. It should be 10 and not 11.
Has anyone encountered the same issue? Would anyone know of a way around?
Thank you!