← Back to team overview

gephi.team team mailing list archive

[Bug 654030] Re: NullPointerException on importing CSV data in Data Laboratory

 

Guys,

sorry to follow up on this again. There's one last thing missing that
would be extremely helpful for me.

Edge _weights_ in Gephi can be time-dependent as well - you can see this
if you have a network with time intervals and export an edge list as CSV
from the Data Laboratory, for example. The format for time-dependent
weights looks like this:

<[100.0, Infinity, 1.0]>

Or presumably, if there are different weights at different times,

<[100.0, 200.0, 1.0); [200.0, 300.0, 2.0]> etc.


Currently, Gephi doesn't accept time-dependent weights when importing edge list CSVs into the Data Laboratory, though. Here's a simple edge list which I've exported from the Data Laboratory:

Source,Target,Type,Id,Label,Weight,Time Interval
a,b,Directed,2,,"<[100.0, Infinity, 1.0]>","<[100.0, 200.0); [400.0, Infinity]>"
b,c,Directed,3,,"<[200.0, Infinity, 1.0]>","<[200.0, 400.0)>"

When re-importing this into Gephi, the weights are simply set to 1. Is
there any chance of fixing this? Hopefully it would be just a matter of
being able to choose the data type for the weight field when importing
CSVs?

Axel

-- 
NullPointerException on importing CSV data in Data Laboratory
https://bugs.launchpad.net/bugs/654030
You received this bug notification because you are a member of Gephi
Team, which is subscribed to 0.7.

Status in Gephi - Network exploration and manipulation: Fix Committed
Status in Gephi 0.7 series: Fix Committed

Bug description:


Graph API throws NPE because source or target is null

Stack trace:
java.lang.NullPointerException
	at org.gephi.graph.dhns.core.GraphFactoryImpl.newEdge(GraphFactoryImpl.java:128)
	at org.gephi.graph.dhns.core.GraphFactoryImpl.newEdge(GraphFactoryImpl.java:123)
	at org.gephi.graph.dhns.core.GraphFactoryImpl.newEdge(GraphFactoryImpl.java:47)
	at org.gephi.datalab.impl.GraphElementsControllerImpl.buildEdge(GraphElementsControllerImpl.java:431)
	at org.gephi.datalab.impl.GraphElementsControllerImpl.createEdge(GraphElementsControllerImpl.java:89)
	at org.gephi.datalab.impl.AttributeColumnsControllerImpl.importCSVToEdgesTable(AttributeColumnsControllerImpl.java:597)
	at org.gephi.datalab.plugin.manipulators.general.ui.ImportCSVUIWizardAction.performAction(ImportCSVUIWizardAction.java:85)
	at org.gephi.datalab.plugin.manipulators.general.ImportCSV.execute(ImportCSV.java:40)





References