Learn R Programming

rgexf (version 0.12.06)

gexf: Generates GEXF graph file

Description

Based on nodes and edges data frames builds XML format GEXF file

Usage

gexf(nodes, edges, edgesAtt = NULL, nodesAtt = NULL, nodeDynamic = NULL, 
  edgeDynamic = NULL, output = NA, tFormat = "double", defaultedgetype = "undirected")

Arguments

nodes
Two columns matrix or data frame including 'label' and 'id'
edges
Two columns matrix or data frame including 'source' and 'target' based on nodes ids
edgesAtt
One or more columns data frame with number of rows equal to the number of edges
nodesAtt
One or more columns data frame with number of rows equal to the number of nodes
nodeDynamic
Two columns matrix or data frame including 'start' and 'end' with number of rows equal to the number of nodes according to the format specified at tFormat
edgeDynamic
Two columns matrix or data frame including 'start' and 'end' with number of rows equal to the number of edges according to the format specified at tFormat
output
Complet path (including file name) where to print the GEXF file
tFormat
Time format for dynamic graphs
defaultedgetype
'directed' or 'undirected'

Value

  • A GEXF (xml) graph object.

Details

When defining any kind of att values, gexf reads the data and, using the same column names, defines and prints each att value.

References

The GEXF project website: http://gexf.net

Examples

Run this code
demo(dspl)

Run the code above in your browser using DataLab