Import CSV via API

Get help with your data
Post Reply
ishais
Posts: 4
Joined: 29 Aug 2017 17:34

Import CSV via API

Post by ishais » 06 Sep 2017 10:27

Hi all,

Does anyone have a sample code showing how to import nodes & edges CSVs via the toolkit?

Thanks!

User avatar
eduramiba
Gephi Code Manager
Posts: 879
Joined: 22 Mar 2010 15:30
Location: Madrid, Spain

Re: Import CSV via API

Post by eduramiba » 06 Sep 2017 16:31

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

User avatar
eduramiba
Gephi Code Manager
Posts: 879
Joined: 22 Mar 2010 15:30
Location: Madrid, Spain

Re: Import CSV via API

Post by eduramiba » 06 Sep 2017 16:42

Example of how to use the Import API with any file https://github.com/gephi/gephi-toolkit- ... xport.java

ishais
Posts: 4
Joined: 29 Aug 2017 17:34

Re: Import CSV via API

Post by ishais » 06 Sep 2017 16:56

Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests