How to get gdf file from by java desktop app

Get help with your data
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
ph0123
Posts:8
Joined:05 Dec 2013 04:07
Location:Việt Nam
[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
How to get gdf file from by java desktop app

Post by ph0123 » 05 Dec 2013 04:11

Hi all,
I want to get gdf file or other file with friends map by java.
Help me, please?

ph0123
Posts:8
Joined:05 Dec 2013 04:07
Location:Việt Nam
[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: How to get gdf file from by java desktop app

Post by ph0123 » 05 Dec 2013 04:23

may be gexf file or many kind of file that gephi toolkip support.? help... help.....

User avatar
seinecle
Gephi Community Support
Posts:546
Joined:08 Feb 2010 16:55
Location:Lyon, France
Contact:

Re: How to get gdf file from by java desktop app

Post by seinecle » 07 Dec 2013 15:25

Sorry your question is not entirely clear. Could you rephrase it a bit?

Best,

Clement

ph0123
Posts:8
Joined:05 Dec 2013 04:07
Location:Việt Nam
[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: How to get gdf file from by java desktop app

Post by ph0123 » 18 Dec 2013 08:08

I can't load gdf file with gephi toolkit. Here is my code:
String s = "C://abc.gdf";//in C: had abc.gdf
File file = Utilities.toFile(getClass().getResource(s).toURI());
container = importController.importFile(file);
container.getLoader().setEdgeDefault(EdgeDefault.DIRECTED); //Force DIRECTED
container.setAllowAutoNode(false); //Don't create missing nodes
=> pointer is null
String s = "/resources//abc.gdf";// in folder resources had abc.gdf
File file = Utilities.toFile(getClass().getResource(s).toURI());
container = importController.importFile(file);
container.getLoader().setEdgeDefault(EdgeDefault.DIRECTED); //Force DIRECTED
container.setAllowAutoNode(false); //Don't create missing nodes
=> run ok
I built it become *.jar and can't load abc.gdf.... help meeeeeeeeeeeeeeeeeeeeeee

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
[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