gephi/gephi — Issue #519: GDF exporter makes superfluous field on dynamic graphs
Author: megaterik
Created: 2012-02-03 01:19:41+00:00
State: open

Steps to reproduce:
1)Take some dynamic dataset, like example from http://wiki.gephi.org/index.php/Import_Dynamic_Data#Dynamic_attributes
2)Export to .gdf with default options(full graph, position, colors, attributes, quotes text)
3)Result:
nodedef> name VARCHAR,label VARCHAR,width DOUBLE,height DOUBLE,x DOUBLE,y DOUBLE,color VARCHAR,Price FLOAT
n1,"Node 1",10.0,10.0,-317.2995,97.89579,'153,153,153',34.0
n2,"Node 2",10.0,10.0,-17.244598,82.25913,'153,153,153',12.0
n3,"Node 3",10.0,10.0,334.5441,-180.15492,'153,153,153',40.5
edgedef> node1,node2,weight DOUBLE,directed BOOLEAN
n1,n2,1.0,true,
n1,n3,1.0,true,[Ljava.lang.Double;@4e48f32a
n3,n2,1.0,true,[Ljava.lang.Double;@1754728d
4)This ",[Ljava.lang.Double;@4e48f32a" field causing error while importing exported file.
It seems that such strings are being generated by DynamicUtilities.getDynamicValue() when dynamic value is something like "(123,345)" instead of (123,345,"some value that variable take on that time interval") -- and that is how time interval of edge itself is storing(interval, when edge is visible, "Time Interval" field in data laboratory)
I made a patch that adds another EdgeColumnsGDF to the defaultEdgeColumnsGDFs