igraph.to.gexf {rgexf} | R Documentation |
gexf
and igraph
classesConverts objects between gexf
and igraph
objects keeping attributes, edge weights and colors.
igraph.to.gexf(igraph.obj, position=NULL) gexf.to.igraph(gexf.obj)
igraph.obj |
An object of class |
gexf.obj |
An object of class |
position |
A three-column data-frame with XYZ coords. |
If the position argument is not NULL
, the new gexf
object will include the position
viz-attribute.
For igraph.to.gexf
: gexf
class object
For gexf.to.igraph
: igraph
class object
George Vega Yon george.vega@nodoschile.org
## Not run: # Running demo demo(gexfigraph) # A simple graph without gexf1 <- read.gexf("http://gephi.org/datasets/LesMiserables.gexf") igraph1 <- gexf.to.igraph(gexf1) gexf2 <- igraph.to.gexf(igraph1) # A graph with attributes gexf3 <- read.gexf("http://gexf.net/data/data.gexf") igraph2 <- gexf.to.igraph(gexf3) gexf4 <- igraph.to.gexf(igraph2) ## End(Not run)