Trying to save graph as graphml file

590 views
Skip to first unread message

Amit Chandak

unread,
Feb 19, 2018, 6:24:38 PM2/19/18
to Gremlin-users
Hi,
       I am running gremlin server with Neo4J plugin. I am trying to save the graph in graphml format from gremlin console using:

gremlin> g.saveGraphML("/data/neo4j.graphml")
No signature of method: org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource.saveGraphML() is applicable for argument types: (java.lang.String) values: [/data/neo4j.graphml]
Type ':help' or ':h' for help.
Display stack trace? [yN]N

This is with Tinkerpop 3.3.1? If this is not the api, whats the new api to save in graphML?

Amit

Olav Laudy

unread,
Feb 19, 2018, 6:28:42 PM2/19/18
to Gremlin-users
I'm using:


graph.io(graphml()).writeGraph('graph.graphml')

graph.io(graphson()).writeGraph('graph.graphson')


graph.io(graphml()).readGraph('data/tinkerpop-modern.xml')

graph.io(IoCore.gryo()).readGraph('data/tinkerpop-crew.kryo')

Amit Chandak

unread,
Feb 19, 2018, 6:49:10 PM2/19/18
to Gremlin-users
Awesome, thanks!!

Amit
Message has been deleted

Olav Laudy

unread,
Feb 20, 2018, 8:58:02 AM2/20/18
to gremli...@googlegroups.com
You can import graphml right from the file menu in Gephi. Much easier!

On Mon, Feb 19, 2018, 16:57 Amit Chandak <amit.c...@gmail.com> wrote:
Hi Olav, one follow up question. Is it possible to export to CSV format?? I am trying to visualize the graph in gephi and i don't see any option (in version 0.9.2) to load data from graphml, they only show the option for csv.

Thanks
Amit
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/501da337-e32d-4377-bbd4-e0588bf84153%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages