Question

I have a very simple question. Running rgexf in R I use the code

require(rgexf)
vertices <- as.data.frame(cbind(seq(1,10),seq(1,10)))
colnames(vertices) <- c('Id','Label')
edges <- as.data.frame(cbind(c(5,1,2),c(1,1,3)))
colnames(edges) <- c('Source','Target')

to import to Gephi a graph called 'testgex.gexf' with nodes resp. edges given in vertices resp. edges. To do so I run the function

write.gexf(output='testgex.gexf',nodes=vertices,edges=edges,defaultedgetype = "undirected")

whose output in R is just

GEXF graph successfully written at:
...

where the dots are the path of 'testgex.gexf'.

I would like to visualize the XLM code behind write.gexf, instead. This is shown, for example, in @gvegayon 's answer in here or at the Bitbucket rgexf page.

How to do this?

Was it helpful?

Solution

just dont include the output=testgexf.gexf or you can open the .gexf file in a text editor

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top