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")

--

--