title: Titan -> Neo4j Gremlin subgraph
body: <p>I wish to extract all the edges and vertices that are attached to a specific list and who they follow and copy them to either neo4j directly or by creating a graphson or a kryo file of the data.</p>
  
  <p>Something similar to this:</p>
  
  <pre><code>g.V().has("sublist_id", 14).in('ON').out('FOLLOWS')
  </code></pre>
  
  <p>I basically want every vertices and edge in a separate database or file to query in isolation.</p>
  
  <p>What is my best approach approach?</p>
  
  <p>I did the following but can't seem to export as json or kryo only graphml.</p>
  
  <pre><code>gremlin&gt; subGraph = g.V().has('sublist_id', 14).in('ON').outE('FOLLOWS').subgraph('subGraph').cap('subGraph').next()
  ==&gt;tinkergraph[vertices:3438716 edges:14090945]
  
  
  gremlin&gt; subGraph.io(IoCore.gryo()).writeGraph("/data/test.kryo")
  Class is not registered: com.thinkaurelius.titan.graphdb.relations.RelationIdentifier
  Note: To register this class use: kryo.register(com.thinkaurelius.titan.graphdb.relations.RelationIdentifier.class);
  Display stack trace?
  
  
  gremlin&gt; subGraph.io(IoCore.graphson()).writeGraph("/data/test.json");
  (was java.lang.IllegalStateException) (through reference chain: com.thinkaurelius.titan.graphdb.relations.RelationIdentifier["inVertexId"])
  Display stack trace? [yN]
  </code></pre>