Quick Export: Neo4j to Gephi

One simple method to export the graph from Neo4j to Gephi is using the GraphML model. To achieve this, you need to the neo4j-shell-tools. At the time of writing this post, you can find the latest version at the following URL:

https://github.com/jexp/neo4j-shell-tools

Once the shell-tool is installed, you can run and export the results as GraphML files using the export-graphml command. Note: you need to have the Neo4j running in order to get the shell-tool working.

The next step is to run the following command. In this example, we export connections to ORCID. The limit of the export mainly depends on the capability of the computer that runs Gephi.

export-graphml -r -o out.graphml MATCH (n:orcid)-[r]-() return n,r limit 1000

Related articles and useful links:

Leave a Reply