Trouble with dynamic edge weights
Posted: 27 Jul 2016 05:23
I am trying to create a dynamic graph by importing spreadsheets. I have succeeded in making the topology dynamic (nodes and edges turning on/off), but am having trouble using dynamic attributes, especially edge weights. (I'm having problems with dynamic node attributes too, but those can wait).
I believe I have imported the data correctly. A typical entry in the edges CSV looks like this (minus quotemarks):
Source,Target,timeset,Weight,Type
SourceName,TargetName,<[2010-01-01,2010-04-01]>,<[2010-01-01,0.0];[2010-04-01,0.0]>,Undirected
I made the weight column dynamic before importing, and during the import I checked that the timeset and weight columns were assigned the right data types (TimestampSet and TimestampDoubleMap respectively). The edge table in the data laboratory populates successfully.
The trouble starts when I switch to the Overview screen to view the graph. Sometimes Gephi simply freezes at this point, showing nothing except the message "Initializing..." where the graph should be. Other times a graph appears, but the program freezes (sometimes terminally) when I manipulate the timeline or run a layout. Typically, the following error message appears:
Unexpected exception. The weight is dynamic, call getWeight(timestamp) or getWeight(interval) instead.
The same error occurs if I try to export to a GEFX file, the output of which is always missing the list of edges.
If I make the edge weights static, the graph is usually stable, and I can run layouts and use the timeline. But really I want the edge weights to be dynamic. I have successfully created and filtered dynamic edge weights in a very simple made-up graph, but even then the program crashed when I tried to run various layouts including Force Atlas 2.
Am I expecting too much? Is Gephi not able to handle dynamic edge weights properly yet? Or am I doing something wrong? Or do I perhaps need to create my graph as a GEFX file (something I have no experience doing) rather than importing it from spreadsheets?
Thanks for any help you can offer.
I believe I have imported the data correctly. A typical entry in the edges CSV looks like this (minus quotemarks):
Source,Target,timeset,Weight,Type
SourceName,TargetName,<[2010-01-01,2010-04-01]>,<[2010-01-01,0.0];[2010-04-01,0.0]>,Undirected
I made the weight column dynamic before importing, and during the import I checked that the timeset and weight columns were assigned the right data types (TimestampSet and TimestampDoubleMap respectively). The edge table in the data laboratory populates successfully.
The trouble starts when I switch to the Overview screen to view the graph. Sometimes Gephi simply freezes at this point, showing nothing except the message "Initializing..." where the graph should be. Other times a graph appears, but the program freezes (sometimes terminally) when I manipulate the timeline or run a layout. Typically, the following error message appears:
Unexpected exception. The weight is dynamic, call getWeight(timestamp) or getWeight(interval) instead.
The same error occurs if I try to export to a GEFX file, the output of which is always missing the list of edges.
If I make the edge weights static, the graph is usually stable, and I can run layouts and use the timeline. But really I want the edge weights to be dynamic. I have successfully created and filtered dynamic edge weights in a very simple made-up graph, but even then the program crashed when I tried to run various layouts including Force Atlas 2.
Am I expecting too much? Is Gephi not able to handle dynamic edge weights properly yet? Or am I doing something wrong? Or do I perhaps need to create my graph as a GEFX file (something I have no experience doing) rather than importing it from spreadsheets?
Thanks for any help you can offer.