I have a gml
file that I read it with java in eclipse and I want to know how to store the result of the code below in neo4j
:
TinkerGraph graph = new TinkerGraph();
GMLReader gml= new GMLReader(graph);
gml.inputGraph("/home/salma/Desktop/celegansneural.gml");
You can import graphml and other formats from the neo4j shell with the help of the following: https://github.com/jexp/neo4j-shell-tools
Then just open the shell and use the command:
import-graphml -it /home/salma/Desktop/celegansneural.gml
The -t option tells it to import the node labels as well.