[SOLVED] gexf4j and spells

All questions about the GEXF (see http://gexf.net before)
redcrow
Posts:11
Joined:13 Apr 2012 17:04
Location:Rome
Contact:
Re: gexf4j and spells

Post by redcrow » 16 Apr 2012 23:03

Uhm... I'm not sure if we're talking about the same concept. Before changing code again, I need to know if I've understood what you've meant.

First possibility:
I have a date (Date object in java) and I have to convert it to an integer (i.e., epoch timestamp, like this: http://www.epochconverter.com/). If this is the case, what kind of conversion should I use for double?

Second possibility:
I've just got a number (e.g., 234 or 123.45678) and simply put it in start(open)/end(open) attributes.

Which is the case, the first one or the second one?

Thank you,
Francesco Ficarola

admin
Gephi Community Manager
Posts:964
Joined:09 Dec 2009 14:41
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: gexf4j and spells

Post by admin » 17 Apr 2012 20:09

It's the second one.

redcrow
Posts:11
Joined:13 Apr 2012 17:04
Location:Rome
Contact:

Re: gexf4j and spells

Post by redcrow » 17 Apr 2012 22:55

admin wrote:It's the second one.
Ok, I've changed the methods:

startDate(Date d) --> startValue(Object o)
endDate(Date d) --> endValue(Object o)

Then, in the DynamicEntityWriter class, I check if the Object "o" is a istance of the chosen type in the timeformat attribute, otherwise an exception is thrown.

Now, would you like to test it before publishing? I've done some tests, but if somebody wants to contribute... you're welcome.

Maybe it needs to create a google code project... what do you think of that?

Bye,
Francesco Ficarola

admin
Gephi Community Manager
Posts:964
Joined:09 Dec 2009 14:41
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: gexf4j and spells

Post by admin » 18 Apr 2012 11:05

Yup, Github seems a better place: https://github.com/

I'll get the code when it's on this platform.

thanks!

redcrow
Posts:11
Joined:13 Apr 2012 17:04
Location:Rome
Contact:

Re: gexf4j and spells

Post by redcrow » 18 Apr 2012 14:10

admin wrote:Yup, Github seems a better place: https://github.com/

I'll get the code when it's on this platform.

thanks!
https://github.com/francesco-ficarola/gexf4j

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable