How to export Janusgraph data to graphml

--

gremlin> sg = g.V().has('country', 'US').has('region',without('US-HI', 'US-AL')).outE('route').where(inV().has('region',without('US-HI', 'US-AL')).has('country', 'US')).subgraph('us').cap('us').next()==>tinkergraph[vertices:558 edges:6292]gremlin> sgt = sg.traversal()gremlin> sgt.V().has('country', 'US').count()==>558gremlin> sg.io(IoCore.graphml()).writeGraph("/tmp/airroutes_us.graphml")# Another way to do thisg.V().has('country', 'US').has('region',without('US-HI', 'US-AL')).outE('route').where(inV().has('region',without('US-HI', 'US-AL')).has('country', 'US')).subgraph('us').cap('us').next().io(IoCore.graphml()).writeGraph("/tmp/airroutes_us.graphml")

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response