I have a dataset of a weighted network which has a graphml format. I used below function to read it in R using "igraph" package, but it did not get the data's weight. Any idea to help?
net1<-read.graph("text.graphml", format = "graphml")
I have a dataset of a weighted network which has a graphml format. I used below function to read it in R using "igraph" package, but it did not get the data's weight. Any idea to help?
net1<-read.graph("text.graphml", format = "graphml")
Based on http://igraph.org/r/doc/read_graph.html, you might like to change it to
net1<-read.graph("text.graphml", format = "gml")