- edited description
Wiki Example of the Dynamic GEXF file fails to open in Gephi
Issue #19
new
Hi George,
I followed the examples you have in the wiki for producing a dynamic .gexf file. The problem however, is I am unable to open it in Gephi.
library(rgexf)
people <- data.frame(matrix(c(1:4, 'juan', 'pedro', 'matthew', 'carlos'),ncol=2))
relations <- data.frame(matrix(c(1,4,1,2,1,3,2,3,3,4,4,2), ncol=2, byrow=T))
time<-matrix(c(10.0,13.0,2.0,2.0,12.0,rep(NA,3)), nrow=4, ncol=2)
write.gexf(people, relations, nodeDynamic=time)
<?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.2draft" xmlns:viz="http://www.gexf.net/1.1draft/viz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.gexf.net/1.2draft http://www.gexf.net/1.2draft/gexf.xsd" version="1.2">
<meta lastmodifieddate="2014-04-29">
<creator>NodosChile</creator>
<description>A graph file writing in R using "rgexf"</description>
<keywords>gexf graph, NodosChile, R, rgexf</keywords>
</meta>
<graph mode="dynamic" start="10" end="2" timeformat="double" defaultedgetype="undirected">
<nodes>
<node id="1" label="juan" start="10" end="12"/>
<node id="2" label="pedro" start="13" end="2"/>
<node id="3" label="matthew" start="2" end="2"/>
<node id="4" label="carlos" start="2" end="2"/>
</nodes>
<edges>
<edge id="0" source="1" target="4" weight="1"/>
<edge id="1" source="1" target="2" weight="1"/>
<edge id="2" source="1" target="3" weight="1"/>
<edge id="3" source="2" target="3" weight="1"/>
<edge id="4" source="3" target="4" weight="1"/>
<edge id="5" source="4" target="2" weight="1"/>
</edges>
</graph>
</gexf>
Opening this in Gephi produces an error:
The left endpoint of the interval must be less than the right endpoint.
Have you experienced this before?
Is this a bug in Gephi or in rgexf?
Environment:
- Gephi 0.8.2
- rgexf 0.14.3
- Windows 7 64-bit.
- R 3.0.3
Comments (3)
-
reporter -
reporter OK, it seems I was able to produce a file that can successfully be opened by Gephi by settting the
keepFactors
argument toTRUE
.For example:
write.gexf(people, relations, nodeDynamic=time, keepFactors=T)
-
repo owner That's a bug in
rgexf
at 312:rgexf_cmp.R file. Will fix it ASAPThanks!
- Log in to comment