Hi all,
Does anyone have a sample code showing how to import nodes & edges CSVs via the toolkit?
Thanks!
Import CSV via API
- eduramiba
- Gephi Code Manager
- Posts:1064
- Joined:22 Mar 2010 15:30
- Location:Madrid, Spain [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: Import CSV via API
Hi,
This will be documented for 0.9.2 as the process to do it has changed (now importer API will be used for all csv files (whether they contain a matrix, edge list, nodes table oredges table). You can try to use the 0.9.2-SNAPSHOT version of the toolkit, which will have the spreadsheet importer classes https://github.com/gephi/gephi/blob/mas ... etCSV.java
This will be documented for 0.9.2 as the process to do it has changed (now importer API will be used for all csv files (whether they contain a matrix, edge list, nodes table oredges table). You can try to use the 0.9.2-SNAPSHOT version of the toolkit, which will have the spreadsheet importer classes https://github.com/gephi/gephi/blob/mas ... etCSV.java
- eduramiba
- Gephi Code Manager
- Posts:1064
- Joined:22 Mar 2010 15:30
- Location:Madrid, Spain [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: Import CSV via API
Example of how to use the Import API with any file https://github.com/gephi/gephi-toolkit- ... xport.java
-
- Posts:4
- Joined:29 Aug 2017 17:34 [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: Import CSV via API
Thanks!